]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20150111192335_subscribe_old_changesets.rb
Update to iD v1.7.2
[rails.git] / db / migrate / 20150111192335_subscribe_old_changesets.rb
index 2bc021476ce2d7acabf95ca1a098772aea1f38e4..cd0938318d7b83a4eca608abe36f2728520b4d50 100644 (file)
@@ -1,7 +1,7 @@
 class SubscribeOldChangesets < ActiveRecord::Migration
   def up
     Changeset.find_each do |changeset|
 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
 
     end
   end