diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-03-21 01:07:16 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-03-21 01:07:16 +0000 |
commit | c8470f8a5b74eefd498397a8effdf37b4dc28674 (patch) | |
tree | 70162f5690e6f0a757fb5b7f9d85e1acb818fd0a /activerecord/test/fixtures/db_definitions | |
parent | d15550aeccd5c10d7c734c523116e3da9f4b13e8 (diff) | |
download | rails-c8470f8a5b74eefd498397a8effdf37b4dc28674.tar.gz rails-c8470f8a5b74eefd498397a8effdf37b4dc28674.tar.bz2 rails-c8470f8a5b74eefd498397a8effdf37b4dc28674.zip |
add self referential has_many :through example [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/db_definitions')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/schema.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb index 6e8e23a9c4..7d10fbcadf 100644 --- a/activerecord/test/fixtures/db_definitions/schema.rb +++ b/activerecord/test/fixtures/db_definitions/schema.rb @@ -25,4 +25,8 @@ ActiveRecord::Schema.define do t.column :author_address_id, :integer end + create_table :author_favorites, :force => true do |t| + t.column :author_id, :integer + t.column :favorite_author_id, :integer + end end
\ No newline at end of file |