We forgot to do so in commitfc757428e, when we upgraded rubocop-rails. In this upgrade, this rule was changed to include the `change_column` method. Just like we did in commitdf959b74f, I'm raising an `ActiveRecord::IrreversibleMigration` exception in migrations done before version 1.0.0, since making all of them reversible would be too much work for little benefit.
10 lines
215 B
Ruby
10 lines
215 B
Ruby
class AdjustBudgetFields < ActiveRecord::Migration[4.2]
|
|
def up
|
|
change_column :budgets, :phase, :string, limit: 40, default: "accepting"
|
|
end
|
|
|
|
def down
|
|
fail ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|