A platform for community discussion. Free, open, simple.
Clean up unused function left in the database.
Guo Xiang Tan3ef56616080f
diff --git a/db/migrate/20180308071922_drop_raise_read_only_function.rb b/db/migrate/20180308071922_drop_raise_read_only_function.rbnew file mode 100644index 00000000000..c652109610a--- /dev/null+++ b/db/migrate/20180308071922_drop_raise_read_only_function.rb@@ -0,0 +1,11 @@+class DropRaiseReadOnlyFunction < ActiveRecord::Migration[5.1]+ def up+ ActiveRecord::Base.exec_sql(+ "DROP FUNCTION IF EXISTS raise_read_only CASCADE;"+ )+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+end