aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/migrations.md
diff options
context:
space:
mode:
Diffstat (limited to 'guides/source/migrations.md')
-rw-r--r--guides/source/migrations.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md
index 31e314c69b..9568bfcdb8 100644
--- a/guides/source/migrations.md
+++ b/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: