mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:34:50 +08:00
Reset ActiveRecord cache after dropping columns.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user