]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20150111192335_subscribe_old_changesets.rb
Update bundle
[rails.git] / db / migrate / 20150111192335_subscribe_old_changesets.rb
index 94b3bb565f3663d4186a7929ed71f86a919672fb..41d139ca48b56c3437c3c64f263c54717ebd7a04 100644 (file)
@@ -1,12 +1,5 @@
 class SubscribeOldChangesets < ActiveRecord::Migration[4.2]
-  class Changeset < ActiveRecord::Base
-  end
-
-  def up
-    Changeset.find_each do |changeset|
-      changeset.subscribers << changeset.user unless changeset.subscribers.exists?(changeset.user.id)
-    end
-  end
+  def up; end
 
   def down; end
 end