Skip to content

A platform for community discussion. Free, open, simple.

fix deprecated setting migration

Arpit Jalan27efa4580038
diff --git a/db/migrate/20180508142711_remove_invite_passthrough_hours.rb b/db/migrate/20180508142711_remove_invite_passthrough_hours.rb
index 76f8f1f4634..5fbe7083cb0 100644
--- a/db/migrate/20180508142711_remove_invite_passthrough_hours.rb
+++ b/db/migrate/20180508142711_remove_invite_passthrough_hours.rb
@@ -1,5 +1,9 @@
class RemoveInvitePassthroughHours < ActiveRecord::Migration[5.1]
- def change
+ def up
execute "DELETE FROM site_settings WHERE name = 'invite_passthrough_hours'"
end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
end