A platform for community discussion. Free, open, simple.
Trigger is dropped along with the table.
Guo Xiang Tan152f64a18baf
diff --git a/lib/table_migration_helper.rb b/lib/table_migration_helper.rbindex 72870ce0d02..477cd7fa0e6 100644--- a/lib/table_migration_helper.rb+++ b/lib/table_migration_helper.rb@@ -49,7 +49,6 @@ class TableMigrationHelperActiveRecord::Base.exec_sql("DROP TABLE IF EXISTS #{old_name}")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;SQLend