Skip to content

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

DEV: migration to remove 'bounce_score_threshold_deactivate' setting record

Arpit Jalana3115e430ebc
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