Clean up unused function left in the database.

This commit is contained in:
Guo Xiang Tan 2018-03-08 15:25:10 +08:00
parent 9dc72537e5
commit 3ef5661608
1 changed files with 11 additions and 0 deletions

View File

@ -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