]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20121005195010_add_diary_entry_counter_caches.rb
Avoid more models in old migrations
[rails.git] / db / migrate / 20121005195010_add_diary_entry_counter_caches.rb
index 9c2c72710597e37d80c1e73451febb52a1655d9e..b5e445400dc6a8b02d4b259fbb1d2d070dc0ccda 100644 (file)
@@ -1,4 +1,10 @@
-class AddDiaryEntryCounterCaches < ActiveRecord::Migration
+class AddDiaryEntryCounterCaches < ActiveRecord::Migration[4.2]
+  class DiaryEntry < ActiveRecord::Base
+  end
+
+  class User < ActiveRecord::Base
+  end
+
   def self.up
     add_column :users, :diary_entries_count, :integer, :null => false, :default => 0