1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/migration
Neeraj Singh 3771e4d511 raise IrreversibleMigration if no column given
fixes #10419

Following code should raise  IrreversibleMigration. But the code was
failing since options is an array and not a hash.

def change
  change_table :users do |t|
    t.remove_index [:name, :email]
  end
end

Fix was to check if the options is a Hash before operating on it.
2013-05-06 15:16:42 -04:00
..
command_recorder.rb raise IrreversibleMigration if no column given 2013-05-06 15:16:42 -04:00
join_table.rb Coerce strings in create_join_table. 2012-11-21 13:21:18 -06:00