mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
12 lines
242 B
Ruby
12 lines
242 B
Ruby
|
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
|