diff options
author | Alex MacCaw <maccman@gmail.com> | 2008-05-04 12:28:08 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-05-11 19:30:03 +0100 |
commit | 4cc594bd708df1ec67b61833493198ab0009c627 (patch) | |
tree | f641a527800f7820487b799d2712d912c8cab47d /activerecord/test/schema | |
parent | 0dabb5b7ab3fad23da91a2312f7b586855d52f4a (diff) | |
download | rails-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.rb | 4 |
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| |