aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/fixtures/computer.rb3
-rw-r--r--activerecord/test/fixtures/computers.yml3
2 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/computer.rb b/activerecord/test/fixtures/computer.rb
new file mode 100644
index 0000000000..cc8deb1b2b
--- /dev/null
+++ b/activerecord/test/fixtures/computer.rb
@@ -0,0 +1,3 @@
+class Computer < ActiveRecord::Base
+ belongs_to :developer, :foreign_key=>'developer'
+end
diff --git a/activerecord/test/fixtures/computers.yml b/activerecord/test/fixtures/computers.yml
new file mode 100644
index 0000000000..59253e0ce3
--- /dev/null
+++ b/activerecord/test/fixtures/computers.yml
@@ -0,0 +1,3 @@
+workstation:
+ id: 1
+ developer: 1 \ No newline at end of file