aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2014-06-27 15:09:10 +0200
committerRobin Dupret <robin.dupret@gmail.com>2014-06-27 15:09:10 +0200
commit7a07b2217ad73bbe99234840ea721dae9ecb0d9a (patch)
tree5d0fe01f131244dda96ef86a915d5861831f90d3 /guides
parentd04763f43c905375d20213b020d258bab959bd51 (diff)
downloadrails-7a07b2217ad73bbe99234840ea721dae9ecb0d9a.tar.gz
rails-7a07b2217ad73bbe99234840ea721dae9ecb0d9a.tar.bz2
rails-7a07b2217ad73bbe99234840ea721dae9ecb0d9a.zip
Tiny follow-up to 1a69112
Wrap list items to 80 chars and avoid relying on NOTE inside an item since they are meant to be parsed in paragraphs, not lists. [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_migrations.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index 1b0ae3ec7e..229c6ee458 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -442,11 +442,15 @@ is reversible.
Column modifiers can be applied when creating or changing a column:
* `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.
+* `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.
-* `default` Allows to set a default value on the column. NOTE: If using a dynamic value (such as date), the default will only be calculated the first time (e.g. on the date the migration is applied.)
+* `default` Allows to set a default value on the column. Note that if you
+are using a dynamic value (such as a date), the default will only be calculated
+the first time (i.e. on the date the migration is applied).
* `index` Adds an index for the column.
Some adapters may support additional options; see the adapter specific API docs