X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/497009ed2b98dfdeeb349e891c1fbd88d14ff087..e17b89e89fa932673f7dc2cf5a2fd3437ec0eda6:/db/migrate/20150111192335_subscribe_old_changesets.rb diff --git a/db/migrate/20150111192335_subscribe_old_changesets.rb b/db/migrate/20150111192335_subscribe_old_changesets.rb index 2bc021476..cd0938318 100644 --- a/db/migrate/20150111192335_subscribe_old_changesets.rb +++ b/db/migrate/20150111192335_subscribe_old_changesets.rb @@ -1,7 +1,7 @@ class SubscribeOldChangesets < ActiveRecord::Migration def up Changeset.find_each do |changeset| - changeset.subscribers << changeset.user unless changeset.subscribers.exists?(changeset.user) + changeset.subscribers << changeset.user unless changeset.subscribers.exists?(changeset.user.id) end end