aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOfer Nave <odigity@gmail.com>2013-09-24 12:27:21 -0400
committerOfer Nave <odigity@gmail.com>2013-09-24 12:27:21 -0400
commitde1e502429b1287d8bc07cbfbe6638d24322b1e7 (patch)
treeeaa61f142c096152e4812918c90afa0f1ad62fdd
parentf55e178f0307aa2d2a8baae02869b78e3ea3c5b4 (diff)
downloadrails-de1e502429b1287d8bc07cbfbe6638d24322b1e7.tar.gz
rails-de1e502429b1287d8bc07cbfbe6638d24322b1e7.tar.bz2
rails-de1e502429b1287d8bc07cbfbe6638d24322b1e7.zip
added column type to example in section 2.3
-rw-r--r--guides/source/migrations.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md
index 1c858069f3..0f5379059e 100644
--- a/guides/source/migrations.md
+++ b/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