]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb
Update wiki_pages.yml, fix http url in update script
[rails.git] / db / migrate / 20161011010929_subscribe_authors_to_diary_entries.rb
index 2dfbbf2c8c84360ca428d2f3e4a11493ed41e778..219386900609ad4ccc0d92f7f347daf5f9a7fade 100644 (file)
@@ -1,10 +1,9 @@
-class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration
+class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration[5.0]
   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 down
-  end
+  def down; end
 end