Reset ActiveRecord cache after dropping columns.
This commit is contained in:
parent
dd932217ca
commit
8a362a1c3c
|
@ -38,6 +38,8 @@ class ColumnDropper
|
||||||
DROP TRIGGER IF EXISTS #{readonly_trigger_name(table, column)} ON #{table};
|
DROP TRIGGER IF EXISTS #{readonly_trigger_name(table, column)} ON #{table};
|
||||||
SQL
|
SQL
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Discourse.reset_active_record_cache
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue