David Vallner
12/5/2006 1:32:00 AM
Tuka Opaleye wrote:
> Hi all,
>
> In using migrate manually, I "require" the file containing the migration
> and run it using console. I later decide to alter the same file on my
> editor and try to run the migration again (after the code below) and
> the changes are not effected.
>
> I understand that when the migtation file is required a second time, it
> is not loaded. how do I then unload it so that i can reload it with the
> fresh changes ? Or is there a better way ?
>
Use load (ri Kernel#load) instead of require. I -think- you need to use
the .rb with load as opposed to require, but I'm not sure.
David Vallner