diff --git a/.travis.yml b/.travis.yml index 4cf52828..4a5334e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ rvm: - 2.5 - 2.6 - 2.7 + - 3.0 gemfile: - gemfiles/rails_5.0.gemfile @@ -32,6 +33,12 @@ jobs: gemfile: gemfiles/rails_5.1.gemfile - rvm: 2.7 gemfile: gemfiles/rails_5.2.gemfile + - rvm: 3.0 + gemfile: gemfiles/rails_5.0.gemfile + - rvm: 3.0 + gemfile: gemfiles/rails_5.1.gemfile + - rvm: 3.0 + gemfile: gemfiles/rails_5.2.gemfile addons: postgresql: "12" diff --git a/lib/chrono_model/adapter/migrations.rb b/lib/chrono_model/adapter/migrations.rb index 1277bb25..cabde389 100644 --- a/lib/chrono_model/adapter/migrations.rb +++ b/lib/chrono_model/adapter/migrations.rb @@ -5,7 +5,7 @@ module Migrations # Creates the given table, possibly creating the temporal schema # objects if the `:temporal` option is given and set to true. # - def create_table(table_name, options = {}) + def create_table(table_name, **options) # No temporal features requested, skip return super unless options[:temporal] @@ -63,7 +63,7 @@ def rename_table(name, new_name) # features on the given table. Please note that you'll lose your history # when demoting a temporal table to a plain one. # - def change_table(table_name, options = {}, &block) + def change_table(table_name, **options, &block) transaction do # Add an empty proc to support calling change_table without a block. @@ -76,7 +76,7 @@ def change_table(table_name, options = {}, &block) end drop_and_recreate_public_view(table_name, options) do - super table_name, options, &block + super table_name, **options, &block end else @@ -84,7 +84,7 @@ def change_table(table_name, options = {}, &block) chrono_undo_temporal_table(table_name) end - super table_name, options, &block + super table_name, **options, &block end end