aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-13 17:51:07 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-13 17:51:07 -0300
commit0168ce10a31ff2a00e2bce1c81ffbb25f0500281 (patch)
treec04467e96924fe3c69db9301c60a3f36c0d36ef8 /activerecord/test/schema
parent33dc653466c0058740611259956712a9027801b3 (diff)
parent543523045112c5f5920c486e6fcf2d7e1ffedf5a (diff)
downloadrails-0168ce10a31ff2a00e2bce1c81ffbb25f0500281.tar.gz
rails-0168ce10a31ff2a00e2bce1c81ffbb25f0500281.tar.bz2
rails-0168ce10a31ff2a00e2bce1c81ffbb25f0500281.zip
Merge pull request #19683 from tristang/require-option-for-counter-cache
Require explicit counter_cache option for has_many
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 08ac7749f9..6f34115534 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -674,6 +674,8 @@ ActiveRecord::Schema.define do
t.string :name
t.integer :pirate_id
t.integer :update_only_pirate_id
+ # Conventionally named column for counter_cache
+ t.integer :treasures_count, default: 0
t.datetime :created_at
t.datetime :created_on
t.datetime :updated_at