discourse/db/migrate/20180308071922_drop_raise_r...

12 lines
244 B
Ruby
Raw Normal View History

class DropRaiseReadOnlyFunction < ActiveRecord::Migration[5.1]
def up
ActiveRecord::Base.exec_sql(
2018-03-08 02:52:07 -05:00
"DROP FUNCTION IF EXISTS raise_read_only() CASCADE;"
)
end
def down
raise ActiveRecord::IrreversibleMigration
end
end