aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorIan Young <ian.greenleaf@gmail.com>2012-09-17 14:57:13 -0700
committerIan Young <ian.greenleaf@gmail.com>2013-03-20 13:43:07 -0700
commit66679c8ecd9e916cbd96745b853603bc2fed7639 (patch)
tree7b0b2f5b91aa7e48db3beb7d184922be55d37f5c /activerecord/test/schema
parent34c7e73c1def1312e59ef1f334586ff2f668246e (diff)
downloadrails-66679c8ecd9e916cbd96745b853603bc2fed7639.tar.gz
rails-66679c8ecd9e916cbd96745b853603bc2fed7639.tar.bz2
rails-66679c8ecd9e916cbd96745b853603bc2fed7639.zip
Update other counter caches on destroy
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index a952738e84..8fd4898ad6 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -230,14 +230,16 @@ ActiveRecord::Schema.define do
t.integer :access_level, :default => 1
end
- create_table :dog_lovers, :force => true do |t|
- t.integer :trained_dogs_count, :default => 0
- t.integer :bred_dogs_count, :default => 0
+ create_table :dog_lovers, force: true do |t|
+ t.integer :trained_dogs_count, default: 0
+ t.integer :bred_dogs_count, default: 0
+ t.integer :dogs_count, default: 0
end
create_table :dogs, :force => true do |t|
t.integer :trainer_id
t.integer :breeder_id
+ t.integer :dog_lover_id
end
create_table :edges, :force => true, :id => false do |t|