]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb
Merge remote-tracking branch 'upstream/pull/1851'
[rails.git] / db / migrate / 20161011010929_subscribe_authors_to_diary_entries.rb
index 3fcbdf5fb3e9a8477645d2a4d3fce67bd8e8561e..219386900609ad4ccc0d92f7f347daf5f9a7fade 100644 (file)
@@ -1,4 +1,4 @@
-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)