Permalink
Browse files

Update migrations.md

default column type modifier
  • Loading branch information...
1 parent c9a4312 commit 1a69112d6a7f5d8d321e41d603af0279690b0c8e @kalmanh kalmanh committed Jun 8, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 guides/source/migrations.md
@@ -303,6 +303,7 @@ braces. You can use the following modifiers:
* `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.)
For instance, running:

0 comments on commit 1a69112

Please sign in to comment.