Permalink
Browse files

Merge pull request #13357 from taryneast/master

Describe precision + scale in migrations guide
  • Loading branch information...
2 parents ccaa3e4 + e2c17cf commit 6de454fb05c66fe9db73516a9a5b5c31373977b2 @laurocaetano laurocaetano committed Dec 19, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 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:

0 comments on commit 6de454f

Please sign in to comment.