This project is archived and is in readonly mode.
Model generator doesn't honor --skip option
Reported by Evgeniy Dolzhenko | December 10th, 2010 @ 04:24 PM | in 3.1
When trying to provide the --skip option to rails generate
model
it fails if the about to be generated migration
already exists instead of just skipping it. Demonstration:
> rails -v
Rails 3.0.3
> rails new test_generator
> cd test_generator
> rails generate model post
> rails generate model post --skip
invoke active_record
Another migration is already named create_posts: /srv/samba/share/test_generator/db/migrate/20101210161949_create_posts.rb
Comments and changes to this ticket
-
Piotr Sarnacki December 10th, 2010 @ 10:05 PM
- Milestone set to 3.1
- Assigned user set to José Valim
- Importance changed from to Low
I attached patch for that. It works on master, I think that it's not important to backport it on stable, as this is minor bug.
-
Piotr Sarnacki December 11th, 2010 @ 12:10 AM
- no changes were found...
-
Piotr Sarnacki December 11th, 2010 @ 09:55 AM
- Tag changed from generators to generators, patch
-
Repository December 11th, 2010 @ 10:42 AM
- State changed from new to resolved
(from [307443972c5f6de959a5401eec76ca327484b10c]) Skip creating migration if --skip option is passed to model generator [#6144 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/307443972c5f6de959a5401eec76c... -
Repository December 15th, 2010 @ 08:40 PM
(from [0dc39cd8ee24466f204a292ae61643ce3b3b4c32]) Skip creating migration if --skip option is passed to model generator [#6144 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/0dc39cd8ee24466f204a292ae6164...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 6144 Model generator doesn't honor --skip option (from [307443972c5f6de959a5401eec76ca327484b10c]) Skip cr...
- 6144 Model generator doesn't honor --skip option (from [0dc39cd8ee24466f204a292ae61643ce3b3b4c32]) Skip cr...