From 27efa4580038617c1a043aca17df8d2ca09ba746 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 9 May 2018 08:14:45 +0530 Subject: [PATCH] fix deprecated setting migration --- .../20180508142711_remove_invite_passthrough_hours.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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