diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-01-29 05:43:45 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-01 06:27:23 +0900 |
commit | 111ccc832bc977b15af12c14e7ca078dad2d4373 (patch) | |
tree | 640fa3c6f1b6d2553f689399e57873ef11a06bed /activerecord/test/schema | |
parent | a57b5292b0987c62d8567b253c9b54dc84b560d6 (diff) | |
download | rails-111ccc832bc977b15af12c14e7ca078dad2d4373.tar.gz rails-111ccc832bc977b15af12c14e7ca078dad2d4373.tar.bz2 rails-111ccc832bc977b15af12c14e7ca078dad2d4373.zip |
Chain scope constraints should respect own table alias
Fixes #27666.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index b38b9661b3..4c31548fff 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -329,6 +329,15 @@ ActiveRecord::Schema.define do create_table :eyes, force: true do |t| end + create_table :families, force: true do |t| + end + + create_table :family_trees, force: true do |t| + t.references :family + t.references :member + t.string :token + end + create_table :funny_jokes, force: true do |t| t.string :name end |