Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | correctly check `ApplicationRecord` is exist in moutable engine | yuuji.yaginuma | 2016-02-25 | 1 | -11/+15 |
| | | | | Follow up to 1813b29fc7632959800252f36e4b2e6ed4ac7266 | ||||
* | Add notes for future selves | Jon Moss | 2016-02-22 | 1 | -0/+1 |
| | | | | | | | Once RubyGems 2.5.0 is required, then the duplicated files can be removed, and symlinks can be used instead. [ci skip] | ||||
* | Generate ApplicationRecord if it does not already exist | Jon Moss | 2016-02-22 | 1 | -0/+8 |
| | |||||
* | correctly presence check of `application_record.rb` in plugin | yuuji.yaginuma | 2016-01-02 | 1 | -1/+7 |
| | |||||
* | Make sure File.exist? run in the root of the application | Rafael Mendonça França | 2015-12-16 | 1 | -1/+5 |
| | |||||
* | Do not define attributes_with_index as a Thor task | Rafael Mendonça França | 2015-12-16 | 1 | -4/+4 |
| | | | | | All public methods are tasks, so we need to move it to protected visibility. | ||||
* | Remove dead code | Rafael Mendonça França | 2015-12-16 | 1 | -4/+0 |
| | |||||
* | Introduce ApplicationRecord, an Active Record layer supertype | Genadi Samokovarov | 2015-12-16 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | It's pretty common for folks to monkey patch `ActiveRecord::Base` to work around an issue or introduce extra functionality. Instead of shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can hold all those custom work the apps may need. Now, we don't wanna encourage all of the application models to inherit from `ActiveRecord::Base`, but we can encourage all the models that do, to inherit from `ApplicationRecord`. Newly generated applications have `app/models/application_record.rb` present by default. The model generators are smart enough to recognize that newly generated models have to inherit from `ApplicationRecord`, but only if it's present. | ||||
* | Stop aligning the arguments | Rafael Mendonça França | 2015-10-23 | 1 | -4/+4 |
| | |||||
* | Use thor class_option to make the primary_key_type option work | Rafael Mendonça França | 2015-10-23 | 1 | -2/+1 |
| | | | | Also move the method to the right class | ||||
* | copy edits[ci skip] | Vijay Dev | 2013-05-19 | 1 | -1/+1 |
| | |||||
* | Added documentation for model migration generation | aditya-kapoor | 2013-05-14 | 1 | -0/+4 |
| | |||||
* | Support creating a table migration generator | Sammy Larbi | 2013-03-01 | 1 | -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 Rodriguez | 2012-10-20 | 1 | -2/+2 |
| | |||||
* | 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 | 1 | -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é Valim | 2011-12-24 | 1 | -1/+5 |
| | |||||
* | added ability to specify from cli when generating a model/migration whether ↵ | Dmitrii Samoilov | 2011-12-24 | 1 | -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 columns | Michał Łomnicki | 2011-02-01 | 1 | -0/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | 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 | 1 | -2/+2 |
| | | | | 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 | 1 | -0/+5 |
| | | | | 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 | 1 | -0/+33 |
former since it's less obstrusive. |