Trigger is dropped along with the table.
This commit is contained in:
parent
3ef5661608
commit
152f64a18b
|
@ -49,7 +49,6 @@ class TableMigrationHelper
|
||||||
ActiveRecord::Base.exec_sql("DROP TABLE IF EXISTS #{old_name}")
|
ActiveRecord::Base.exec_sql("DROP TABLE IF EXISTS #{old_name}")
|
||||||
|
|
||||||
ActiveRecord::Base.exec_sql <<~SQL
|
ActiveRecord::Base.exec_sql <<~SQL
|
||||||
DROP TRIGGER IF EXISTS #{readonly_trigger_name(old_name)} ON #{old_name};
|
|
||||||
DROP FUNCTION IF EXISTS #{readonly_function_name(old_name)} CASCADE;
|
DROP FUNCTION IF EXISTS #{readonly_function_name(old_name)} CASCADE;
|
||||||
SQL
|
SQL
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue