Ticket #640 (new defect)

Opened 3 months ago

Last modified 3 months ago

Several migrations issues with extension model generator

Reported by: schof Assigned to:
Priority: major Milestone:
Component: core Keywords: extension model migrations generator
Cc:

Description

When creating an extension model the generator assigns the migration number based on the next number of the application's migration sequence. Normally there is no sequence so the number is 001. The next model generated for the same extension, however, will also get the same sequence number of 001. Things are further complicated when attempting to create a model within the radiant root as the migration number will be based on the last number of the radiant migrations.

The destroy generator also has a problem. When attempting to destroy even the first extension model you get a message claiming that there is no migrations matching that name. This is because the generator is looking in #{RAILS_ROOT}/db/migrate instead of the extension's migration directory.

Change History

05/01/08 17:47:02 changed by schof

I have isolated the cause of the problem. I will submit a pull request that resolves this issue once it is solved.