aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-07-04 15:16:00 -0600
committerSean Griffin <sean@thoughtbot.com>2014-08-08 10:29:27 -0600
commitfdfc0fc6c91b46a3ff769687e1a456ef2b205417 (patch)
tree9ff94e55f5837376b0b65de720137fe65a6040bc /activerecord/test
parentc69e21d36b3a14f6894fb768ffeb165bd8d7c533 (diff)
downloadrails-fdfc0fc6c91b46a3ff769687e1a456ef2b205417.tar.gz
rails-fdfc0fc6c91b46a3ff769687e1a456ef2b205417.tar.bz2
rails-fdfc0fc6c91b46a3ff769687e1a456ef2b205417.zip
Add a `required` option to the model generator
Syntax was chosen to follow the passing of multiple options to decimal/numeric types. Curly braces, and allowing any of `,`, `.`, or `-` to be used as a separator to avoid the need for shell quoting. (I'm intending to expand this to all columns, but that's another PR. The `required` option will cause 2 things to change. `required: true` will be added to the association. `null: false` will be added to the column in the migration.
Diffstat (limited to 'activerecord/test')
0 files changed, 0 insertions, 0 deletions