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
Prem Sichanugrist a4128725f5 Add reversible syntax for change_column_default
Passing `:from` and `:to` to `change_column_default` makes this command
reversible as user has defined its previous state.

So, instead of having the migration command as:

    change_column_default(:posts, :state, "draft")

They can write it as:

    change_column_default(:posts, :state, from: nil, to: "draft")
2015-06-26 16:25:13 -04:00
..
command_recorder.rb Add reversible syntax for change_column_default 2015-06-26 16:25:13 -04:00
join_table.rb create_join_table uses same logic as HABTM reflections 2014-07-18 19:46:53 +03:00