projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use th tags on trace show table
[rails.git]
/
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 d145c6bd53de5d03c5b6e8a42252c6c486e6d07a..ec05f34646a4032bd5a77edee45e6716e3369721 100644
(file)
--- 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