我正在尝试删除多个触发器,但收到 SQL 错误:
PG::Error: ERROR: syntax error at or near ";"
LINE 1: DROP TRIGGER rr_admin_reports;
这是我在rails中执行的sql:
sql = <<-SQL
DROP TRIGGER rr_admin_reports;
DROP TRIGGER rr_apps;
DROP TRIGGER rr_attachments;
SQL
有没有办法轻松删除一长串触发器?谢谢