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