[Rails] Re: Disable Migration creation in generate Model

John Topley john at johntopley.com
Sat Jun 3 12:23:36 GMT 2006


Jón Borgþórsson wrote:
> Hi....
> 
> Is there some way to configure Rails to not create a
> db/migrate/###_model_name.rb when I do a script/generate model
> ModelName?

I believe that script/generate model ModelName --skip-migration will do 
what you want. Incidentally, you can find out the available options by 
doing script/generate, or more specifically script/generate 
<thing_to_generate>

It will output a help screen.

John

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list