From 1a69112d6a7f5d8d321e41d603af0279690b0c8e Mon Sep 17 00:00:00 2001 From: Kalman Hazins Date: Sun, 8 Jun 2014 10:29:57 -0400 Subject: Update migrations.md default column type modifier --- guides/source/migrations.md | 1 + 1 file changed, 1 insertion(+) (limited to 'guides/source/migrations.md') 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: -- cgit v1.2.3