mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 19:44:39 +08:00
make migration irreversible
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
class RemoveEnforceSquareEmoji < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
def up
|
||||
execute "DELETE FROM site_settings WHERE name = 'enforce_square_emoji'"
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user