From: Tuka Opaleye Date: 2006-12-05T09:44:39+09:00 Subject: how do I "unrequire" a file ? 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 ? TIA, Tuka >> require 'db/migrate/001_category.rb' => true >> Category.down == Category: reverting ======================================================== -- drop_table(:categories) -> 0.4600s == Category: reverted (0.4600s) =============================================== => nil >> Category.up == Category: migrating ======================================================== -- create_table(:categories) -> 0.1700s == Category: migrated (0.1700s) =============================================== -- Posted via http://www.ruby-forum.com/.