Skip to content
Browse files

added column type to example in section 2.3

  • Loading branch information...
1 parent f55e178 commit de1e502429b1287d8bc07cbfbe6638d24322b1e7 @odigity odigity committed Sep 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/migrations.md
View
2 guides/source/migrations.md
@@ -314,7 +314,7 @@ will produce a migration that looks like this
```ruby
class AddDetailsToProducts < ActiveRecord::Migration
def change
- add_column :products, :price, precision: 5, scale: 2
+ add_column :products, :price, :decimal, precision: 5, scale: 2
add_reference :products, :supplier, polymorphic: true, index: true
end
end

0 comments on commit de1e502

Please sign in to comment.
Something went wrong with that request. Please try again.