Reset ActiveRecord cache after dropping columns.

This commit is contained in:
Guo Xiang Tan 2017-07-25 15:36:30 +09:00
parent dd932217ca
commit 8a362a1c3c
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ class ColumnDropper
DROP TRIGGER IF EXISTS #{readonly_trigger_name(table, column)} ON #{table};
SQL
end
Discourse.reset_active_record_cache
end
end