aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/db_definitions
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-03 14:20:57 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-03 14:20:57 +0000
commitb2c0359b3e63f472a1ff8bf02061c97dafb98a34 (patch)
treed5546157fc9b17199ca4d0205b2b1812b896364a /activerecord/test/fixtures/db_definitions
parentf254831e8309ce6ec74cc30a46a68bb5c2ffb6df (diff)
downloadrails-b2c0359b3e63f472a1ff8bf02061c97dafb98a34.tar.gz
rails-b2c0359b3e63f472a1ff8bf02061c97dafb98a34.tar.bz2
rails-b2c0359b3e63f472a1ff8bf02061c97dafb98a34.zip
SQLServer: recognize real column type as Ruby float, correctly schema-dump tables with no indexes or descending indexes. References #7057, #7703. Closes #7333.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/db_definitions')
-rw-r--r--activerecord/test/fixtures/db_definitions/schema.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb
index b5d7704d2e..3dc9a9b8a3 100644
--- a/activerecord/test/fixtures/db_definitions/schema.rb
+++ b/activerecord/test/fixtures/db_definitions/schema.rb
@@ -64,4 +64,11 @@ ActiveRecord::Schema.define do
t.column :name, :string
end
end
+
+ # For sqlserver 2000+, ensure real columns can be used
+ if adapter_name.starts_with?("SQLServer")
+ create_table :table_with_real_columns, :force => true do |t|
+ t.column :real_number, :real
+ end
+ end
end