aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/model
Commit message (Collapse)AuthorAgeFilesLines
* rm -rf rails_generator/generatorsJosé Valim2009-07-026-120/+0
|
* Get Railties passing againYehuda Katz2009-05-161-1/+1
|
* Remove the class_path from the collisions test.Michael Koziarski2008-10-141-1/+1
| | | | The class_path is often taken already in situations like Admin namespaces etc.
* Generate belongs_to association when generating a modelTarmo Tänav2008-08-231-1/+1
|
* Generate belongs_to associations automatically for 'references' types [#640 ↵Tarmo Tänav2008-08-231-0/+3
| | | | state:resolved]
* Changed all generated tests to use the test/do declaration style [DHH]David Heinemeier Hansson2008-06-121-1/+1
|
* Generated tests rely on test dir in load path rather than File.dirname ↵Jeremy Kemper2008-03-291-1/+1
| | | | | | shenanigans. ruby -Itest test/unit/foo_test.rb to run a test by hand (that's a capital I as in Island). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated fixtures should not specify ids since theyre expected to be foxy ↵David Heinemeier Hansson2007-12-011-9/+9
| | | | | | fixtures (closes #10330) [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make work with --skip-timestampsDavid Heinemeier Hansson2007-11-061-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added --skip-timestamps to generators that produce models (closes #10036) ↵David Heinemeier Hansson2007-11-042-2/+6
| | | | | | [tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Excise generated whitespace. Closes #10017 [Tim Pope]Jeremy Kemper2007-10-291-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TestCase subclasses for testing rails applications allowing tests ↵Michael Koziarski2007-10-261-1/+1
| | | | | | to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated fixtures use the actual primary key instead of id. Closes #4343.Jeremy Kemper2007-10-151-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed calls to fixtures in generated tests as fixtures :all is now present ↵David Heinemeier Hansson2007-10-011-2/+0
| | | | | | by default in test_helper.rb [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the correct generator name in the docs (closes #9111) [ceefour]David Heinemeier Hansson2007-09-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added --skip-fixture option to script/generate model (closes #6862) [sandofsky]David Heinemeier Hansson2007-09-231-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7601 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the placement of fixture files for nested models when generating ↵David Heinemeier Hansson2007-09-221-1/+1
| | | | | | through script/generate model (closes #7547) [jkit] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added db:version to get the current schema number [via Tim Bray]David Heinemeier Hansson2007-06-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix indentation in model generator migration template. Closes #8577 [Josh Peek]Jeremy Kemper2007-06-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6939 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Wordsmith generator USAGEs.Jeremy Kemper2007-05-291-14/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated migrations include timestamps by default. Closes #8501.Jeremy Kemper2007-05-293-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Normalize whitespace. Closes #8385 [Time Pope]Jeremy Kemper2007-05-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added short-hand declaration style to migrations (inspiration from Sexy ↵David Heinemeier Hansson2007-05-061-1/+1
| | | | | | Migrations, http://errtheblog.com/post/2381) [DHH] Updated resource_scaffold and model generators to use short-hand style migrations [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include field:type option for modelsDavid Heinemeier Hansson2006-10-091-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added script/generate resource which works just like scaffold_resource, but ↵David Heinemeier Hansson2006-10-093-15/+30
| | | | | | creates empty placeholders instead of predefined [DHH] Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove opts.on { |options[:option_name] } style hash assignment. Closes #4440.Nicholas Seckar2006-06-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make generation of namespaced models produce proper migrations #4219 [Caio ↵David Heinemeier Hansson2006-03-181-2/+2
| | | | | | Chassot] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3947 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Migrations created alongside models should be called CreateModels not ↵David Heinemeier Hansson2006-03-051-2/+2
| | | | | | AddModels for consistency with the create/drop notion of tables [Dave Thomas] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Migrations should use symbols now that the schema dumper is switching to ↵David Heinemeier Hansson2006-03-041-3/+3
| | | | | | that as well [Suggested by Robby Russel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop annoying me when Im changing fixtures for other tests firstDavid Heinemeier Hansson2006-02-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tmp/sessions, tmp/cache, and tmp/sockets as default directories in the ↵David Heinemeier Hansson2006-02-251-1/+1
| | | | | | Rails skeleton [DHH] Changed the default session configuration to place sessions in tmp/sessions, if that directory is available, instead of /tmp (this essentially means a goodbye to 9/10 White Screen of Death errors and should have web hosting firms around the world cheering) [DHH] Added a default configuration of the FileStore for fragment caching if tmp/cache is available, which makes action/fragment caching ready to use out of the box with no additional configuration [DHH] Changed the default configuration for lighttpd to use tmp/sockets instead of log/ for the FastCGI sockets [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that script/generate model will now automatically create a migration ↵David Heinemeier Hansson2006-02-253-1/+30
| | | | | | file for the model created. This can be turned off by calling the generator with --skip-migration [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Model generator: correct relative path to test_helper in unit test.Jeremy Kemper2005-11-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove superfluous check for pluralize_table_names (use table_name which ↵Sam Stephenson2005-11-221-1/+1
| | | | | | does this check when it's set). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added demonstration of fixture use to the test case generated by the model ↵David Heinemeier Hansson2005-11-022-7/+3
| | | | | | generator [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that model generator would make fixtures plural, even if ↵David Heinemeier Hansson2005-07-021-1/+1
| | | | | | ActiveRecord::Base.pluralize_table_names was false #1185 [Marcel Molina] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved the generated scaffold code a lot to take advantage of recent Rails ↵David Heinemeier Hansson2005-03-201-1/+1
| | | | | | developments #882 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@951 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Check class path for conflicts on generation #640 [bitsweat]David Heinemeier Hansson2005-02-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed generated functional test for nested controllers has wrong paths #635David Heinemeier Hansson2005-02-151-3/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A hopefully more successful attempt at the Routing branch mergeDavid Heinemeier Hansson2005-02-153-6/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of routing merge.. investigating missing patchesDavid Heinemeier Hansson2005-02-153-9/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merged back the Routing branchDavid Heinemeier Hansson2005-02-153-6/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new generator framework that informs about its doings on generation ↵David Heinemeier Hansson2005-02-075-0/+56
and enables updating and destruction of generated artifacts. See the new script/destroy and script/update for more details #487 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de