]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20150111192335_subscribe_old_changesets.rb
Don't try and add fingerprints for user images
[rails.git] / db / migrate / 20150111192335_subscribe_old_changesets.rb
index cca8293f55ef9e34f5fa7ebebf5cd7f9609d5060..94b3bb565f3663d4186a7929ed71f86a919672fb 100644 (file)
@@ -1,4 +1,7 @@
-class SubscribeOldChangesets < ActiveRecord::Migration
+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)
   def up
     Changeset.find_each do |changeset|
       changeset.subscribers << changeset.user unless changeset.subscribers.exists?(changeset.user.id)