about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2023-03-25 19:40:36 -0400
committerGitHub <noreply@github.com>2023-03-26 00:40:36 +0100
commit3557a65bb255cddb29bb3163835fe6b6a44bccd4 (patch)
treec47ccd71ddf330a81a544caeb7268eb4677bb3b6 /db
parent0663803348440cc4b66f061801259dc10c0ad83d (diff)
Reset model in migration after removing column (#24250)
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20190511152737_remove_suspended_silenced_account_fields.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/post_migrate/20190511152737_remove_suspended_silenced_account_fields.rb b/db/post_migrate/20190511152737_remove_suspended_silenced_account_fields.rb
index a46349cb7..615f35cd0 100644
--- a/db/post_migrate/20190511152737_remove_suspended_silenced_account_fields.rb
+++ b/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