X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d130db9fa84da832a6a0cb0333982725fdc480c7..4bca24a7beb4a78cecfeaa775d41662497f9930f:/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 76fa1fabf..996d2c9b2 100644 --- a/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb +++ b/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb @@ -1,12 +1,5 @@ class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration[4.2] - class DiaryEntry < ActiveRecord::Base - end - - 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 + def up; end def down; end end