Hello, i have Ruby class:
class Migrator
def self.migrate_old_categories
ActiveRecord::Base.establish_connection(:data_center_v2)
ActiveRecord::Base.table_name = "categories"
end
end
I need use it, as i used it always. For example: Category.find(:all) So, how i can it, when i'm write: Migrator.migrate_old_categories, end script find all Categories?
Thanx, apoligize for my english. Russian.