aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorIan Lesperance <ilesperance@pivotallabs.com>2012-09-05 18:00:07 -0400
committerYves Senn <yves.senn@oxon.ch>2013-01-23 15:17:33 +0100
commitb6d49312920c0b3163064e44ca45871c68136b1c (patch)
treee084e35799a51a65eafb7d7da91ec76c3323883b /activerecord/test/schema
parent2a5d119b44b1099c939bbf71c99fec5883d05ef7 (diff)
downloadrails-b6d49312920c0b3163064e44ca45871c68136b1c.tar.gz
rails-b6d49312920c0b3163064e44ca45871c68136b1c.tar.bz2
rails-b6d49312920c0b3163064e44ca45871c68136b1c.zip
Fix pluck when columns/tables are reserved words.
Backport #7536 to fix #8968. Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/relation/calculations.rb
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 1a993fef11..32982e4f82 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -281,6 +281,10 @@ ActiveRecord::Schema.define do
t.string :info
end
+ create_table :having, :force => true do |t|
+ t.string :where
+ end
+
create_table :guids, :force => true do |t|
t.column :key, :string
end