Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A few schema changes for the SQL Server adapter.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
commit b1291836c36ba7afc02f48e798c3ccb8558e308c 1 parent 6a60387
@metaskills metaskills authored NZKoz committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/schema/schema.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.