From a3115e430ebce33e73618c38763f16e3745dfee0 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 30 Jan 2020 17:32:57 +0530 Subject: [PATCH] DEV: migration to remove 'bounce_score_threshold_deactivate' setting record --- ...ove_bounce_score_threshold_deactivate_site_setting.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20200130115859_remove_bounce_score_threshold_deactivate_site_setting.rb diff --git a/db/migrate/20200130115859_remove_bounce_score_threshold_deactivate_site_setting.rb b/db/migrate/20200130115859_remove_bounce_score_threshold_deactivate_site_setting.rb new file mode 100644 index 00000000000..34f0f265f70 --- /dev/null +++ b/db/migrate/20200130115859_remove_bounce_score_threshold_deactivate_site_setting.rb @@ -0,0 +1,9 @@ +class RemoveBounceScoreThresholdDeactivateSiteSetting < ActiveRecord::Migration[6.0] + def up + execute "DELETE FROM site_settings WHERE name = 'bounce_score_threshold_deactivate'" + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end