X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11cc4a5e601dd288d601e6e35a72d159062f18b5..1b288d40c7fff3d3be8d82d4e96c9008778f4dba:/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..ec05f3464 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 < ApplicationRecord + end + + class User < ApplicationRecord + end + def self.up add_column :users, :diary_entries_count, :integer, :null => false, :default => 0