mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 16:01:02 +08:00
Clean up unused function left in the database.
This commit is contained in:
parent
6307790168
commit
f038903423
11
db/migrate/20180308071922_drop_raise_read_only_function.rb
Normal file
11
db/migrate/20180308071922_drop_raise_read_only_function.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user