Commit e85482ea7e5925b7c738c5416ba87d3f515556f0
1 parent
6d69da64
Exists in
master
and in
18 other branches
organization_ratings: fix migration
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/organization_ratings/db/migrate/20151203121430_destroy_rejected_reports.rb
... | ... | @@ -5,7 +5,7 @@ class DestroyRejectedReports < ActiveRecord::Migration |
5 | 5 | settings = YAML.load(task['data']) |
6 | 6 | comments << settings[:organization_rating_comment_id] |
7 | 7 | end |
8 | - execute("DELETE FROM comments WHERE id IN (#{comments.join(',')})") | |
8 | + execute("DELETE FROM comments WHERE id IN (#{comments.join(',')})") if comments.present? | |
9 | 9 | end |
10 | 10 | |
11 | 11 | def down | ... | ... |