aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/migration_generator_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Usage file in generators shouldn't be fetched only based on source_rootPiotr Sarnacki2012-04-011-0/+4
| | | | | | | | In case `source_roout` is not set, `default_source_root` is used, which includes also `templates` directory. If there is no `templates` directory, `default_source_root` is not available and USAGE will not be displayed. USAGE should be also checked based on default directory excluding `templates`.
* Avoid another blank line in generated migration and remove assertion as per ↵Marcelo Silveira2012-03-211-1/+0
| | | | @spastorino request
* Merge pull request #5532 from mhfs/migration_blank_lineJosé Valim2012-03-211-0/+1
|\ | | | | Remove blank line from generated migration
| * Remove blank line from generated migrationMarcelo Silveira2012-03-201-0/+1
| |
* | Generate Migration Thats Adds Removed IndexTravis Jeffery2012-03-211-0/+18
|/ | | | | When generating a migration that removes a field with an index, the down will add both the field and its index.
* Support decimal{1,2} and decimal{1-2} and decimal{1.2} so it works fine with ↵José Valim2012-01-221-3/+3
| | | | | | | | bash, zsh, etc, closes #4602 Conflicts: railties/test/generators/migration_generator_test.rb
* Use 1.9 hash syntax instead.José Valim2011-12-241-7/+7
|
* assert_not_match -> assert_no_match.José Valim2011-12-241-2/+2
|
* 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/+62
| | | | particular property should be an index like this 'rails g model person name:string:index profile:string'
* be sure to parenthesize the arguments when the first one is a RegExp literalAkira Matsuda2011-05-181-8/+8
| | | | | | 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
* Use Rails 3.1 `change` method in 'add_' migration generatorPrem Sichanugrist2011-01-041-6/+1
|
* Facepunch failing tests.José Valim2010-11-181-6/+6
|
* Add test for migration generator with name not starting with add or remove. ↵rohit2010-06-201-0/+15
| | | | | | [#4835 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make the migration generator handle pre-existing migrations with the same ↵Phil Smith2010-04-191-0/+13
| | | | | | | | | | timestamp. In the event a migration already exists with that number, the new migration's timestamp will be incremented by 1. [#4412 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.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/+3
|
* 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-21/+12
|
* Create Rails::Generators::TestCase.José Valim2010-01-031-4/+4
|
* 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
|
* Updated vendored Thor to 0.11.1 and update Rails::Generators.José Valim2009-07-141-1/+1
|
* Added lookup to generators.José Valim2009-07-031-1/+0
|
* Added tessts for resources generator.José Valim2009-06-281-16/+18
|
* Added migration and session_migration generator.José Valim2009-06-281-0/+58