aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/model
Commit message (Collapse)AuthorAgeFilesLines
* [Railties] require_relative => requireAkira Matsuda2017-10-211-1/+1
| | | | This basically reverts 618268b4b9382f4bcf004a945fe2d85c0bd03e32
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* [Railties] require => require_relativeAkira Matsuda2017-07-011-1/+1
|
* Revert "Merge pull request #23698 from ↵Rafael Mendonça França2016-10-281-1/+11
| | | | | | | | | meinac/add_missing_types_into_ar_model_generator_usage" This reverts commit aaf561d26cf9a879ff40190b625155015c6225da, reversing changes made to 83776676e54b387fc52081ff31cfd7710bae9e03. Reason: It is not a good idea to connect to the database on generators
* Merge pull request #23698 from ↵Arthur Nogueira Neves2016-10-281-11/+1
|\ | | | | | | | | meinac/add_missing_types_into_ar_model_generator_usage Dynamically show available sql types [ci skip]
| * Dynamically show available sql types [ci skip]Mehmet Emin İNAÇ2016-02-161-11/+1
| | | | | | | | Dynamically list available sql data types based on current database adapter.
* | applies new string literal convention in railties/libXavier Noria2016-08-061-1/+1
|/ | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* [ci skip] Space out framework names in USAGEKasper Timm Hansen2015-12-301-4/+4
| | | | | | Two USAGE files were referring to Active Record and Active Model without a space, which is incorrect because we're referring to the framework name and not the constants.
* table name should be plural [ci skip]Jian Weihang2015-01-291-1/+1
|
* bring back unintentionally removed blank line [ci skip]Yves Senn2015-01-171-0/+1
| | | | Thanks @carlosantoniodasilva :yellow_heart:
* Merge pull request #18558 from robertomiranda/patch-3 [ci skip]Yves Senn2015-01-171-2/+6
|\ | | | | | | Update Molde Generator Usage
| * Update Molde Generator UsageRoberto Miranda2015-01-161-0/+5
|/ | | Including has_secure_token generator
* acronyms like ORM should be in uppercase, so overwrite the desc generated by ↵shunsukeaida2015-01-071-1/+1
| | | | hook_for
* Remove timestamp type from generator usageRafael Mendonça França2014-08-201-1/+0
| | | | It was soft removed at 03035d69e14032a589e9653e3145237b8a9a09be
* Additional clarification on password:digest in scaffold and model generator ↵noinkling2014-07-251-1/+11
| | | | help [ci skip]
* Add warning when user tried to create model with pluralize name.Kuldeep Aggarwal2014-02-231-0/+4
| | | | | 1. Generate model with correct_name. 2. It will help new users to avoid mistakes when tried to create model with wrong name.
* Improve usage example for model generatorAndrey Koleshko2013-10-251-1/+1
|
* Improve model generator USAGE grammarMatthew Michihara2013-05-051-5/+5
|
* Model generator USAGE doc improvedJason King2013-04-041-10/+16
| | | | | | * Added information about syntax for precision/scale of decimals * Removed incorrect information about being able to set `default` * Added more examples of usage
* Fix generated migration file name in model generator USAGEAkira Matsuda2013-01-061-7/+7
|
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-111-1/+1
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
| * update Rails::Generators docs [ci skip]Francesco Rodriguez2012-10-071-1/+1
| |
* | Update test locationsMike Moore2012-10-091-2/+2
|/ | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional)
* Add few information on the field typesRobin Dupret2012-07-041-0/+49
|
* Tidy up migration types.José Valim2011-12-241-1/+1
|
* 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'
* 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/+15
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-232-0/+38
| | | | former since it's less obstrusive.
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-182-38/+0
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-242-0/+38