From: David Vallner Date: 2006-12-05T10:32:21+09:00 Subject: Re: how do I "unrequire" a file ? --------------enig560F1AC8FE8C822A47A79220 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Tuka Opaleye wrote: > Hi all, >=20 > In using migrate manually, I "require" the file containing the migratio= n > 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. >=20 > 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 ? >=20 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 --------------enig560F1AC8FE8C822A47A79220 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFdMwjy6MhrS8astoRAi/IAJ45HFSbf7QfmMK86hM4FPKeYKK6hgCeOWxh 1G4ITbzyzM934wZjZyCtM4U= =CcPL -----END PGP SIGNATURE----- --------------enig560F1AC8FE8C822A47A79220--