mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
a4128725f5
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") |
||
---|---|---|
.. | ||
command_recorder.rb | ||
join_table.rb |