From e85482ea7e5925b7c738c5416ba87d3f515556f0 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Sat, 5 Dec 2015 23:40:09 -0300 Subject: [PATCH] organization_ratings: fix migration --- plugins/organization_ratings/db/migrate/20151203121430_destroy_rejected_reports.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/organization_ratings/db/migrate/20151203121430_destroy_rejected_reports.rb b/plugins/organization_ratings/db/migrate/20151203121430_destroy_rejected_reports.rb index 7d08281..56329ac 100644 --- a/plugins/organization_ratings/db/migrate/20151203121430_destroy_rejected_reports.rb +++ b/plugins/organization_ratings/db/migrate/20151203121430_destroy_rejected_reports.rb @@ -5,7 +5,7 @@ class DestroyRejectedReports < ActiveRecord::Migration settings = YAML.load(task['data']) comments << settings[:organization_rating_comment_id] end - execute("DELETE FROM comments WHERE id IN (#{comments.join(',')})") + execute("DELETE FROM comments WHERE id IN (#{comments.join(',')})") if comments.present? end def down -- libgit2 0.21.2