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 6307790168
commit f038903423

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