diff options
author | Ken Collins <ken@metaskills.net> | 2010-08-08 21:51:02 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2010-09-03 14:57:16 +1200 |
commit | d28438caf2342be3df8421ed92b95e0510be8ac0 (patch) | |
tree | 77159faadc6dabb59d173e0e56b9bb72c68a44ee /activerecord/test/schema | |
parent | 599e46bf24419a429ee0bb0ea02afd48f47aa4ec (diff) | |
download | rails-d28438caf2342be3df8421ed92b95e0510be8ac0.tar.gz rails-d28438caf2342be3df8421ed92b95e0510be8ac0.tar.bz2 rails-d28438caf2342be3df8421ed92b95e0510be8ac0.zip |
A few schema changes for the SQL Server adapter.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 7657e00800..ea62833d81 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -233,7 +233,7 @@ ActiveRecord::Schema.define do 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 @@ ActiveRecord::Schema.define do 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 |