mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +08:00
12 lines
243 B
Ruby
12 lines
243 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DropRaiseReadOnlyFunction < ActiveRecord::Migration[5.1]
|
|
def up
|
|
DB.exec("DROP FUNCTION IF EXISTS raise_read_only() CASCADE;")
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|