]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20150111192335_subscribe_old_changesets.rb
Merge remote-tracking branch 'upstream/master' into routing-ui-tweaks-2
[rails.git] / db / migrate / 20150111192335_subscribe_old_changesets.rb
1 class SubscribeOldChangesets < ActiveRecord::Migration
2   def up
3     Changeset.find_each do |changeset|
4       changeset.subscribers << changeset.user unless changeset.subscribers.exists?(changeset.user)
5     end
6   end
7
8   def down
9   end
10 end