Reset model in migration after removing column (#24250)

local
Matt Jankowski 1 year ago committed by GitHub
parent 0663803348
commit 3557a65bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      db/post_migrate/20190511152737_remove_suspended_silenced_account_fields.rb

@ -34,6 +34,7 @@ class RemoveSuspendedSilencedAccountFields < ActiveRecord::Migration[5.2]
remove_column :accounts, :suspended, :boolean, null: false, default: false
remove_column :accounts, :silenced, :boolean, null: false, default: false
end
Account.reset_column_information
end
def down

Loading…
Cancel
Save