diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-04-30 23:30:50 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-04-30 23:30:50 -0500 |
commit | 6f20efdaf733db26fbf337da73121983785064d5 (patch) | |
tree | 18dbb4c1dde8b2862df67502d1a9b8ca224d5fc3 /activerecord/test/schema | |
parent | 1eb686a0e5944d99d40bc8ab8039e4179ed78cf7 (diff) | |
download | rails-6f20efdaf733db26fbf337da73121983785064d5.tar.gz rails-6f20efdaf733db26fbf337da73121983785064d5.tar.bz2 rails-6f20efdaf733db26fbf337da73121983785064d5.zip |
Fixed AssociationsPreload such that it doesnt require foreign keys to be integers (fcheung) [#33 state:resolved]
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index e22b78749c..818237f076 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -349,6 +349,11 @@ ActiveRecord::Schema.define do end add_index :subscribers, :nick, :unique => true + create_table :subscriptions, :force => true do |t| + t.string :subscriber_id + t.integer :book_id + end + create_table :tasks, :force => true do |t| t.datetime :starting t.datetime :ending |