2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-08 02:25:10 -05:00
|
|
|
class DropRaiseReadOnlyFunction < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
2018-03-08 02:52:07 -05:00
|
|
|
DB.exec("DROP FUNCTION IF EXISTS raise_read_only() CASCADE;")
|
2018-03-08 02:25:10 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
raise ActiveRecord::IrreversibleMigration
|
|
|
|
end
|
|
|
|
end
|