Permalink
Browse files

A few schema changes for the SQL Server adapter.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent 599e46b commit d28438caf2342be3df8421ed92b95e0510be8ac0 @metaskills metaskills committed with NZKoz Aug 9, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/schema/schema.rb
@@ -233,7 +233,7 @@ def create_table(*args, &block)
end
create_table :items, :force => true do |t|
- t.column :name, :integer
+ t.column :name, :string
end
create_table :inept_wizards, :force => true do |t|
@@ -343,8 +343,8 @@ def create_table(*args, &block)
t.decimal :my_house_population, :precision => 2, :scale => 0
t.decimal :decimal_number_with_default, :precision => 3, :scale => 2, :default => 2.78
t.float :temperature
- # Oracle supports precision up to 38
- if current_adapter?(:OracleAdapter)
+ # Oracle/SQLServer supports precision up to 38
+ if current_adapter?(:OracleAdapter,:SQLServerAdapter)
t.decimal :atoms_in_universe, :precision => 38, :scale => 0
else
t.decimal :atoms_in_universe, :precision => 55, :scale => 0

0 comments on commit d28438c

Please sign in to comment.