X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/497009ed2b98dfdeeb349e891c1fbd88d14ff087..2ac8b4b76057c293fc93f492359933db87abfc59:/db/migrate/20150111192335_subscribe_old_changesets.rb?ds=inline 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