pascalh1011/migrant — Issue #10: warning: already initialized constant
Author: KieranP
Created: 2011-11-24 22:09:05+00:00
State: open

When a model defines a constant, and you run 'rake generate migrations', it's loading all the model files twice, and throwing a "warning: already initialized constant" for each constant.

In migration_generator.rb, it should only require the file when the filename minus the extension classified and constantized doesn't exist.