Avoid more models in old migrations
[rails.git] / db / migrate / 20150111192335_subscribe_old_changesets.rb
index ad23026..94b3bb5 100644 (file)
@@ -1,4 +1,7 @@
 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)