lib/arql/concerns/table_data_definition.rb in arql-0.3.14 vs lib/arql/concerns/table_data_definition.rb in arql-0.3.15

- old
+ new

@@ -99,11 +99,11 @@ # # Supplier.change_column(:name, :string, limit: 80) # Post.change_column(:description, :text) # def change_column(column_name, type, options = {}) - ActiveRecord::Base.connection.change_column(table_name, column_name, type, options) + ActiveRecord::Base.connection.change_column(table_name, column_name, type, **options) end # Removes the column from the table definition. # # Supplier.remove_column(:qualification) @@ -227,11 +227,11 @@ # # Concurrently adding an index is not supported in a transaction. # # For more information see the {"Transactional Migrations" section}[rdoc-ref:Migration]. def add_index(column_name, options = {}) - ActiveRecord::Base.connection.add_index(table_name, column_name, options) + ActiveRecord::Base.connection.add_index(table_name, column_name, **options) end # Adds a new foreign key. # +to_table+ contains the referenced primary key. # @@ -516,10 +516,10 @@ # # Concurrently removing an index is not supported in a transaction. # # For more information see the {"Transactional Migrations" section}[rdoc-ref:Migration]. def remove_index(options = {}) - ActiveRecord::Base.connection.remove_index(table_name, options) + ActiveRecord::Base.connection.remove_index(table_name, **options) end # Removes the timestamp columns (+created_at+ and +updated_at+) from the table definition. # # Supplier.remove_timestamps