X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6db326aa1f084a062a3b658876bc01bf650f5702..a41d500b9f65ec9f4e848effd38dc1ae117e7594:/db/migrate/20121005195010_add_diary_entry_counter_caches.rb diff --git a/db/migrate/20121005195010_add_diary_entry_counter_caches.rb b/db/migrate/20121005195010_add_diary_entry_counter_caches.rb index d145c6bd5..b5e445400 100644 --- a/db/migrate/20121005195010_add_diary_entry_counter_caches.rb +++ b/db/migrate/20121005195010_add_diary_entry_counter_caches.rb @@ -1,4 +1,10 @@ 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