This project is archived and is in readonly mode.

#6777 new
Nizar Jouini

rails g scaffold does not respect --force or --skip switches

Reported by Nizar Jouini | May 11th, 2011 @ 11:50 PM

Hi!

Running:

rails new blog
rails g model post title:string
rails g scaffold post title:string body:text

Will fail: Another migration is already named create_posts. This is cool.
But:

rails g scaffold post title:string body:text --force
Will fail as well: Another migration is already named create_posts:

Also, --skip does not help.

Tried to search tickets for this here but found nil.

If this is not a bug then at least the rails g scaffold --help page should be updated.

Comments and changes to this ticket

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

Pages