diff options
author | Scott Woods <scott@westarete.com> | 2009-04-20 23:48:02 +0300 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-04-21 11:43:38 +0100 |
commit | 64b33b6cf9db508d2c12394cc1a3f36c91fb2eed (patch) | |
tree | 4ee0d64fba52ffe0c7ddec4a5fd88adf70561767 /activerecord/test/schema | |
parent | cdcd638c2f27ebf98ba7aa59512547f58a5e0c61 (diff) | |
download | rails-64b33b6cf9db508d2c12394cc1a3f36c91fb2eed.tar.gz rails-64b33b6cf9db508d2c12394cc1a3f36c91fb2eed.tar.bz2 rails-64b33b6cf9db508d2c12394cc1a3f36c91fb2eed.zip |
Quote table names when casting to regclass so that capitalized tables are supported. [#2418 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
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 5640510c96..3b073b0888 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -68,6 +68,10 @@ ActiveRecord::Schema.define do t.boolean :value end + create_table "CamelCase", :force => true do |t| + t.string :name + end + create_table :categories, :force => true do |t| t.string :name, :null => false t.string :type |