aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/rails/generators/active_record/model/model_generator.rb
Commit message (Collapse)AuthorAgeFilesLines
* copy edits[ci skip]Vijay Dev2013-05-191-1/+1
|
* Added documentation for model migration generationaditya-kapoor2013-05-141-0/+4
|
* Support creating a table migration generatorSammy Larbi2013-03-011-1/+1
| | | | | | | | | | | | | | | | Sometimes you want to create a table without an associated model and test, which is also not a join table. With this commit, you can now do that. Example: rails g migration create_posts title:string or rails g migration CreatePosts title:string This commit also moves the template the model generator uses for the migration to the migration templates folder, as it seems a more sensible place for it now that it is shared code.
* nodoc AR::Generators [ci skip]Francesco Rodriguez2012-10-201-2/+2
|
* Automatically create indexes for references/belongs_to statements in migrations.Joshua Wood2012-04-141-1/+2
|
* Whitelist all attribute assignment by default.Michael Koziarski2012-03-051-0/+4
| | | | Change the default for newly generated applications to whitelist all attribute assignment. Also update the generated model classes so users are reminded of the importance of attr_accessible.
* Tidy up migration types.José Valim2011-12-241-1/+5
|
* added ability to specify from cli when generating a model/migration whether ↵Dmitrii Samoilov2011-12-241-1/+1
| | | | particular property should be an index like this 'rails g model person name:string:index profile:string'
* Configurable generation of add_index for references columnsMichał Łomnicki2011-02-011-0/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Generators fix: properly check if module should be created when creating a ↵Piotr Sarnacki2010-09-251-1/+1
| | | | | | namespaced model Signed-off-by: José Valim <jose.valim@gmail.com>
* Refactor namespaced generators to use module_namespacing block helperPiotr Sarnacki2010-09-241-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Generators are not aware of namespace of isolated engines and applicationsPiotr Sarnacki2010-09-241-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-231-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Generate module file for namespaced models [#4230 state:resolved]Andrew White2010-04-121-0/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-231-0/+33
former since it's less obstrusive.