aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorAlex MacCaw <maccman@gmail.com>2008-05-04 12:28:08 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-05-11 19:30:03 +0100
commit4cc594bd708df1ec67b61833493198ab0009c627 (patch)
treef641a527800f7820487b799d2712d912c8cab47d /activerecord/test/schema
parent0dabb5b7ab3fad23da91a2312f7b586855d52f4a (diff)
downloadrails-4cc594bd708df1ec67b61833493198ab0009c627.tar.gz
rails-4cc594bd708df1ec67b61833493198ab0009c627.tar.bz2
rails-4cc594bd708df1ec67b61833493198ab0009c627.zip
Fix validates_uniqueness_of for SQL keywords [#23 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
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 818237f076..423929fd55 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -403,6 +403,10 @@ ActiveRecord::Schema.define do
create_table(t, :force => true) { }
end
+ create_table :guids, :force => true do |t|
+ t.column :key, :string
+ end
+
except 'SQLite' do
# fk_test_has_fk should be before fk_test_has_pk
create_table :fk_test_has_fk, :force => true do |t|