X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/43ef60b6d5cd4db4e9c7aee2e567ea5166cfb2ac..f13f9473798a81113ac640612b878febd4afa714:/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb diff --git a/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb b/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb index 2dfbbf2c8..996d2c9b2 100644 --- a/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb +++ b/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb @@ -1,10 +1,5 @@ -class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration - def up - DiaryEntry.find_each do |diary_entry| - diary_entry.subscriptions.create(:user => diary_entry.user) unless diary_entry.subscribers.exists?(diary_entry.user.id) - end - end +class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration[4.2] + def up; end - def down - end + def down; end end