diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-21 11:14:32 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-21 11:14:32 -0600 |
commit | 9cc324a3f1348430e5b6db58bbddab5090c708c8 (patch) | |
tree | d53057f5003153206a383b984f5631c5a23c1c9b /activerecord/test/schema | |
parent | dac7d0d046bb07a061cbaf6bb526ff96bf73bc1d (diff) | |
download | rails-9cc324a3f1348430e5b6db58bbddab5090c708c8.tar.gz rails-9cc324a3f1348430e5b6db58bbddab5090c708c8.tar.bz2 rails-9cc324a3f1348430e5b6db58bbddab5090c708c8.zip |
Ensure aliased attributes passed to `select` are quoted if using `from`
Fixes #21488
[Sean Griffin & johanlunds]
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index df1834d381..d318f3a968 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -943,6 +943,10 @@ ActiveRecord::Schema.define do t.string :token t.string :auth_token end + + create_table :test_with_keyword_column_name, force: true do |t| + t.string :desc + end end Course.connection.create_table :courses, force: true do |t| |