ActiveRecord magic for importing across different database types
I recently had to import some old tickets from Collaboa (postgres) into Trac (sqlite3). After trying some conventional data dumping methods and getting frustrated with dealing with all the formatting issues, I came up with a rather simple solution by using ActiveRecord to do the dirty work with two database connections:
require ‘rubygems‘
require ‘active_record‘
$config = YAML.load_file(“#{RAILS_ROOT}/config/database.yml“)
module [...]










