diff options
author | Kalman Hazins <kalmanh@gmail.com> | 2014-06-08 10:29:57 -0400 |
---|---|---|
committer | Kalman Hazins <kalmanh@gmail.com> | 2014-06-08 10:29:57 -0400 |
commit | 1a69112d6a7f5d8d321e41d603af0279690b0c8e (patch) | |
tree | f0a8a863a6f0274f9256ad5df59bfb1038616925 /guides | |
parent | c9a43126c5e2c608ab3ff1be994bce69e815a144 (diff) | |
download | rails-1a69112d6a7f5d8d321e41d603af0279690b0c8e.tar.gz rails-1a69112d6a7f5d8d321e41d603af0279690b0c8e.tar.bz2 rails-1a69112d6a7f5d8d321e41d603af0279690b0c8e.zip |
Update migrations.md
default column type modifier
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/migrations.md | 1 |
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: |