Skip to content

Commit

Permalink
A few schema changes for the SQL Server adapter.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information
metaskills authored and NZKoz committed Sep 3, 2010
1 parent 599e46b commit d28438c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/test/schema/schema.rb
Expand Up @@ -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|
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d28438c

Please sign in to comment.