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