mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 14:47:56 +08:00
fix deprecated setting migration
This commit is contained in:
parent
1ce8b7def8
commit
27efa45800
@ -1,5 +1,9 @@
|
|||||||
class RemoveInvitePassthroughHours < ActiveRecord::Migration[5.1]
|
class RemoveInvitePassthroughHours < ActiveRecord::Migration[5.1]
|
||||||
def change
|
def up
|
||||||
execute "DELETE FROM site_settings WHERE name = 'invite_passthrough_hours'"
|
execute "DELETE FROM site_settings WHERE name = 'invite_passthrough_hours'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
raise ActiveRecord::IrreversibleMigration
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user