diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-04-22 04:03:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 04:03:36 +0900 |
commit | aa941c9ce19924589e508f6a1e4bc2d8361a89ae (patch) | |
tree | 0bc4f8accb22b0f8fe9538b1e2089be442106676 /activerecord/test/schema | |
parent | 611e1102d3bd46c4765bec7d57ca8d343c419e33 (diff) | |
parent | 99910dddf28faac31d6a3d4800460f1bc308bb83 (diff) | |
download | rails-aa941c9ce19924589e508f6a1e4bc2d8361a89ae.tar.gz rails-aa941c9ce19924589e508f6a1e4bc2d8361a89ae.tar.bz2 rails-aa941c9ce19924589e508f6a1e4bc2d8361a89ae.zip |
Merge pull request #32514 from samdec/multiple-has-one-through-associations-build-bug
Fix .new with multiple through associations
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 350113eaab..274879d4af 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -364,6 +364,19 @@ ActiveRecord::Schema.define do t.integer :follower_id end + create_table :games, force: true do |t| + t.integer :game_owner_id + t.integer :game_collection_id + end + + create_table :game_boards, force: true do |t| + t.integer :game_id + end + + create_table :game_collections, force: true + + create_table :game_owners, force: true + create_table :goofy_string_id, force: true, id: false do |t| t.string :id, null: false t.string :info |