diff options
author | Lauro Caetano <laurocaetano1@gmail.com> | 2013-12-19 14:51:39 -0800 |
---|---|---|
committer | Lauro Caetano <laurocaetano1@gmail.com> | 2013-12-19 14:51:39 -0800 |
commit | 6de454fb05c66fe9db73516a9a5b5c31373977b2 (patch) | |
tree | 5abe58e4b82ba4c61a5fcd994d52e9f1b958f56b | |
parent | ccaa3e47c4fd1e35bbd986faf1b4994fce3d68d0 (diff) | |
parent | e2c17cfb2b57a8543976e478a63f62c880c224ad (diff) | |
download | rails-6de454fb05c66fe9db73516a9a5b5c31373977b2.tar.gz rails-6de454fb05c66fe9db73516a9a5b5c31373977b2.tar.bz2 rails-6de454fb05c66fe9db73516a9a5b5c31373977b2.zip |
Merge pull request #13357 from taryneast/master
Describe precision + scale in migrations guide
-rw-r--r-- | guides/source/migrations.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md index 71a177bca7..5d5c2724b1 100644 --- a/guides/source/migrations.md +++ b/guides/source/migrations.md @@ -297,10 +297,10 @@ You can append as many column name/type pairs as you want. You can also specify some options just after the field type between curly braces. You can use the following modifiers: -* `limit` Sets the maximum size of the `string/text/binary/integer` fields -* `precision` Defines the precision for the `decimal` fields -* `scale` Defines the scale for the `decimal` fields -* `polymorphic` Adds a `type` column for `belongs_to` associations +* `limit` Sets the maximum size of the `string/text/binary/integer` fields. +* `precision` Defines the precision for the `decimal` fields, representing the total number of digits in the number. +* `scale` Defines the scale for the `decimal` fields, representing the number of digits after the decimal point. +* `polymorphic` Adds a `type` column for `belongs_to` associations. * `null` Allows or disallows `NULL` values in the column. For instance, running: |