]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20150111192335_subscribe_old_changesets.rb
Localisation updates from https://translatewiki.net.
[rails.git] / db / migrate / 20150111192335_subscribe_old_changesets.rb
index 2bc021476ce2d7acabf95ca1a098772aea1f38e4..cca8293f55ef9e34f5fa7ebebf5cd7f9609d5060 100644 (file)
@@ -1,10 +1,9 @@
 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
 
-  def down
-  end
+  def down; end
 end