Migration problem

Hi!
Here is an interesting problem. When i issue the command for
generating
model, it is not creating the migration automatically. InstanceRails is
being used. Why such thing could be happening?
Thanks and regards,
Swanand

On 2/16/07, swanand deodhar [email protected] wrote:

Hi!
Here is an interesting problem. When i issue the command for generating
model, it is not creating the migration automatically. InstanceRails is
being used. Why such thing could be happening?
Thanks and regards,
Swanand

Hi Swanand,

What command are you using to create your model?

script/generate model can take a --skip-migration option which will
suppress the generation of the migration file. Perhaps that’s being
set by something?

Otherwise, it could be a version problem. The CHANGELOG says
migration generation was added to “generate model” in v1.1.1.

Regards,
George.

Swanand Deodhar wrote:

Hi!
Here is an interesting problem. When i issue the command for
generating
model, it is not creating the migration automatically. InstanceRails is
being used. Why such thing could be happening?
Thanks and regards,
Swanand

ruby script/generate model model_name
generates a migration in the db/migrate directory.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs