aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-07-26 15:12:36 -0400
committerJosé Valim <jose.valim@gmail.com>2010-08-02 17:12:59 +0200
commit009aa8825b6932b006f005ac351b82ad8100d7f1 (patch)
tree5e5a86d710a45399347adbc38a22db1b4a2a3fad /activerecord/test/schema
parent59693c4c49cce5e4cf53eb54e42e3da07a98467e (diff)
downloadrails-009aa8825b6932b006f005ac351b82ad8100d7f1.tar.gz
rails-009aa8825b6932b006f005ac351b82ad8100d7f1.tar.bz2
rails-009aa8825b6932b006f005ac351b82ad8100d7f1.zip
Eager loading an association should not change the count of children
[#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index a0e620c2ef..fc3810f82b 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -618,6 +618,19 @@ ActiveRecord::Schema.define do
t.datetime :updated_at
end
+ create_table :liquid, :force => true do |t|
+ t.string :name
+ end
+ create_table :molecules, :force => true do |t|
+ t.integer :liquid_id
+ t.string :name
+ end
+ create_table :electrons, :force => true do |t|
+ t.integer :molecule_id
+ t.string :name
+ end
+
+
except 'SQLite' do
# fk_test_has_fk should be before fk_test_has_pk
create_table :fk_test_has_fk, :force => true do |t|