aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-04-03 23:39:09 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2013-04-04 15:45:13 -0400
commit812469943cc6eddc132d137a0d5929b2c5d0346f (patch)
tree07e3cdbb65d8c2440a877d8e45c49e721607c66f /activerecord/test/fixtures
parentdb113d90caabf7a5d16aef4b61d41155eb5b86c6 (diff)
downloadrails-812469943cc6eddc132d137a0d5929b2c5d0346f.tar.gz
rails-812469943cc6eddc132d137a0d5929b2c5d0346f.tar.bz2
rails-812469943cc6eddc132d137a0d5929b2c5d0346f.zip
has_many through obeys order on through association
fixes #10016
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r--activerecord/test/fixtures/pets.yml5
-rw-r--r--activerecord/test/fixtures/toys.yml6
2 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/pets.yml b/activerecord/test/fixtures/pets.yml
index a1601a53f0..2ec4f53e6d 100644
--- a/activerecord/test/fixtures/pets.yml
+++ b/activerecord/test/fixtures/pets.yml
@@ -12,3 +12,8 @@ mochi:
pet_id: 3
name: mochi
owner_id: 2
+
+bulbul:
+ pet_id: 4
+ name: bulbul
+ owner_id: 1
diff --git a/activerecord/test/fixtures/toys.yml b/activerecord/test/fixtures/toys.yml
index 07ed75e98e..ae9044ec62 100644
--- a/activerecord/test/fixtures/toys.yml
+++ b/activerecord/test/fixtures/toys.yml
@@ -2,7 +2,13 @@ bone:
toy_id: 1
name: Bone
pet_id: 1
+
doll:
toy_id: 2
name: Doll
pet_id: 2
+
+bulbuli:
+ toy_id: 3
+ name: Bulbuli
+ pet_id: 4