Reset model in migration after removing column (#24250)
parent
0663803348
commit
3557a65bb2
|
@ -34,6 +34,7 @@ class RemoveSuspendedSilencedAccountFields < ActiveRecord::Migration[5.2]
|
||||||
remove_column :accounts, :suspended, :boolean, null: false, default: false
|
remove_column :accounts, :suspended, :boolean, null: false, default: false
|
||||||
remove_column :accounts, :silenced, :boolean, null: false, default: false
|
remove_column :accounts, :silenced, :boolean, null: false, default: false
|
||||||
end
|
end
|
||||||
|
Account.reset_column_information
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
|
Loading…
Reference in New Issue