Commit e85482ea7e5925b7c738c5416ba87d3f515556f0

Authored by Braulio Bhavamitra
1 parent 6d69da64

organization_ratings: fix migration

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
... ...