Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#6777

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.

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

State: new
Milestone: none
Assigned to: nobody
Importance: none