diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2014-06-08 09:56:31 -0500 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2014-06-08 09:56:31 -0500 |
commit | e385b853533e15223c89fccde8b20342bbe6528c (patch) | |
tree | f0a8a863a6f0274f9256ad5df59bfb1038616925 /guides/source | |
parent | c9a43126c5e2c608ab3ff1be994bce69e815a144 (diff) | |
parent | 1a69112d6a7f5d8d321e41d603af0279690b0c8e (diff) | |
download | rails-e385b853533e15223c89fccde8b20342bbe6528c.tar.gz rails-e385b853533e15223c89fccde8b20342bbe6528c.tar.bz2 rails-e385b853533e15223c89fccde8b20342bbe6528c.zip |
Merge pull request #15571 from kalmanh/patch-1
Update migrations.md
Diffstat (limited to 'guides/source')
-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: |