X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/67a03d44a171a05fc637e1b9ecfc8d3b7769dc85..33d6580f414714408f74872ab9ef5b73c4b92972:/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 9c2c72710..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 +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