Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created June 18, 2010 12:14
Show Gist options
  • Save metaskills/443568 to your computer and use it in GitHub Desktop.
Save metaskills/443568 to your computer and use it in GitHub Desktop.
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index f3fd37c..4e95cac 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -335,7 +335,7 @@ ActiveRecord::Schema.define do
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)
+ if current_adapter?(:OracleAdapter,:SQLServerAdapter)
t.decimal :atoms_in_universe, :precision => 38, :scale => 0
else
t.decimal :atoms_in_universe, :precision => 55, :scale => 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment