Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Support creating a table migration generator | Sammy Larbi | 2013-03-01 | 2 | -16/+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 Rodriguez | 2012-10-20 | 1 | -2/+2 |
| | |||||
* | Remove mass assignment security from ActiveRecord | Guillermo Iguaran | 2012-09-16 | 1 | -5/+0 |
| | |||||
* | Fixed generating namespaced table_name_prefix in engines | Wojciech Wnętrzak | 2012-07-06 | 1 | -1/+1 |
| | |||||
* | Add polymorphic option to model generator | Aleksey Magusev | 2012-06-27 | 1 | -1/+1 |
| | | | | | | | | | | For instance, $ rails g model Product supplier:references{polymorphic} generate model with `belongs_to :supplier, polymorphic: true` association and appropriate migration. Also fix model_generator_test.rb#L196 and #L201 | ||||
* | Automatically create indexes for references/belongs_to statements in migrations. | Joshua Wood | 2012-04-14 | 1 | -1/+2 |
| | |||||
* | Whitelist all attribute assignment by default. | Michael Koziarski | 2012-03-05 | 2 | -0/+9 |
| | | | | 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é Valim | 2011-12-24 | 2 | -8/+7 |
| | |||||
* | added ability to specify from cli when generating a model/migration whether ↵ | Dmitrii Samoilov | 2011-12-24 | 2 | -3/+6 |
| | | | | particular property should be an index like this 'rails g model person name:string:index profile:string' | ||||
* | for => each in model migration template | Guillermo Iguaran | 2011-05-20 | 1 | -1/+1 |
| | |||||
* | Delete blank lines in migration generator | Santiago Pastorino | 2011-02-02 | 1 | -3/+2 |
| | |||||
* | Configurable generation of add_index for references columns | Michał Łomnicki | 2011-02-01 | 2 | -0/+3 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Use Rails 3.1 `change` method in model generator | Prem Sichanugrist | 2011-01-04 | 1 | -5/+1 |
| | |||||
* | Generate add_index by default when giving type belongs_to or references | Santiago Pastorino | 2010-12-16 | 1 | -0/+4 |
| | |||||
* | updating generators | Aaron Patterson | 2010-11-17 | 1 | -2/+2 |
| | |||||
* | Generators fix: properly check if module should be created when creating a ↵ | Piotr Sarnacki | 2010-09-25 | 1 | -1/+1 |
| | | | | | | namespaced model Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Refactor namespaced generators to use module_namespacing block helper | Piotr Sarnacki | 2010-09-24 | 3 | -2/+6 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Generators are not aware of namespace of isolated engines and applications | Piotr Sarnacki | 2010-09-24 | 1 | -2/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Patch for Namespace problem in Scaffold. [#4763 state:resolved] | Mohammed Siddick.E | 2010-06-23 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Generate module file for namespaced models [#4230 state:resolved] | Andrew White | 2010-04-12 | 2 | -0/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Load generators from both lib/rails/generators and lib/generators. Using the ↵ | José Valim | 2010-03-23 | 3 | -0/+54 |
former since it's less obstrusive. |