aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/model_generator_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix scaffold_generator_test.rb and model_generator_test.rbArun Agrawal2012-04-161-4/+4
| | | | Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
* Whitelist all attribute assignment by default.Michael Koziarski2012-03-051-0/+10
| | | | 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.
* Use 1.9 hash syntax instead.José Valim2011-12-241-6/+6
|
* assert_not_match -> assert_no_match.José Valim2011-12-241-4/+4
|
* 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-0/+68
| | | | particular property should be an index like this 'rails g model person name:string:index profile:string'
* Attributes on scaffold and model generators default to string.José Valim2011-06-171-3/+9
| | | | This allows the following: "rails g scaffold Post title body:text author"
* be sure to parenthesize the arguments when the first one is a RegExp literalAkira Matsuda2011-05-181-17/+16
| | | | | | this fixes: "warning: ambiguous first argument; put parentheses or even spaces" because: you need this to tell the parser that you're not calling :/ method (division) details (Japanese!): http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-dev/42445?42370-43277
* Correct migration name the test is looking to match.Ben Orenstein2011-02-041-1/+1
| | | | | | [#6375 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Configurable generation of add_index for references columnsMichał Łomnicki2011-02-011-0/+41
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Use Rails 3.1 `change` method in model generatorPrem Sichanugrist2011-01-041-6/+2
|
* Skip creating migration if --skip option is passed to model generator [#6144 ↵Piotr Sarnacki2010-12-161-3/+15
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Facepunch failing tests.José Valim2010-11-181-3/+3
|
* Remove existing migration when using 'rails generate model' with --force ↵David Trasbo2010-09-181-0/+9
| | | | | | [#5526 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Add two integration tests for GeneratedAttribute missing type error. [#5461 ↵rohit2010-09-021-0/+6
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Generate module file for namespaced models [#4230 state:resolved]Andrew White2010-04-121-0/+8
| | | | 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-1/+1
| | | | former since it's less obstrusive.
* Get generators tests running on Ruby 1.9.1José Valim2010-01-191-1/+2
|
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-181-1/+1
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Move all generators tests to use new test case syntax.José Valim2010-01-031-8/+1
|
* Create Rails::Generators::TestCase.José Valim2010-01-031-3/+3
|
* CI breakageYehuda Katz2009-11-021-1/+1
| | | | This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
* Generators should use Rails.root instead of Dir.pwd [#3408 status:resolved]José Valim2009-10-281-1/+1
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-1/+1
|
* Fixed generating a namespaced model with table pluralization turned off. Add ↵Hugo Peixoto2009-08-091-0/+44
| | | | | | | | tests for namespaced model generation. [#767 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Updated vendored Thor to 0.11.1 and update Rails::Generators.José Valim2009-07-141-1/+1
|
* Ensure non timestamped migrations are generated properly.José Valim2009-07-131-0/+11
|
* Add the new generators environment and update commands.José Valim2009-07-081-1/+1
|
* More tests for rails generators and lookup.José Valim2009-07-031-2/+2
|
* Added lookup to generators.José Valim2009-07-031-2/+0
|
* Ensure both migration and routes are removed on revoke.José Valim2009-07-021-2/+20
|
* Added tessts for resources generator.José Valim2009-06-281-3/+19
|
* Added migrations and make base generators be lazy loaded.José Valim2009-06-281-40/+40
|
* Show invoked generators options on meta generators.José Valim2009-06-271-0/+6
|
* Add model_subclass generator with deprecation warning.José Valim2009-06-271-0/+5
|
* Added parent option to model generator.José Valim2009-06-271-0/+5
|
* Add a fixture replacement hook to TestUnit model generator.José Valim2009-06-271-0/+6
|
* Initial scratch of model generators.José Valim2009-06-271-0/+72