aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/rails/generators/active_record/model/templates/model.rb.tt
Commit message (Collapse)AuthorAgeFilesLines
* Remove `required: true` from the model generator templatePrathamesh Sonpatki2019-04-151-1/+1
| | | | | | | | `belongs_to` association have `required: true` by default https://github.com/rails/rails/pull/18937 onwards so we don't need it in the generator template. We still need the code for required in the command line generator as it adds `null: false` in the migration.
* Add attachment and attachments field generatorsChris Oliver2019-03-301-0/+6
|
* Add rich_text field to model generatorsChris Oliver2019-03-281-0/+3
|
* Use .tt extension to all the template filesRafael Mendonça França2017-11-131-0/+13
Make clear that the files are not to be run for interpreters. Fixes #23847. Fixes #30690. Closes #23878.