aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-11 00:53:04 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-11 00:53:04 +0000
commit0f4cba7b8657d7ab4f8e072e143a281330373cbb (patch)
tree198277ae22564a50d139ccbe7d343a341dc30dad
parente38ee7cd7fa5acec9c0c5b3ee7b73a485ecaff35 (diff)
downloadrails-0f4cba7b8657d7ab4f8e072e143a281330373cbb.tar.gz
rails-0f4cba7b8657d7ab4f8e072e143a281330373cbb.tar.bz2
rails-0f4cba7b8657d7ab4f8e072e143a281330373cbb.zip
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-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