Skip to content
orangewolf edited this page Nov 4, 2012 · 4 revisions

Here are the instructions for getting this going.

First clone the repo, then cd in to the ar-dbcopy directory

Install

gem install activerecord-mysql2-adapter activerecord-postgresql-adapter debugger

crete a database.yml like the following example:

source:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: vnrscedo1_development
  pool: 5
  username: root
  password:
  socket: /tmp/mysql.sock

target:
  adapter: postgresql
  encoding: utf8
  reconnect: false
  database: vnrscedo2_development
  pool: 5
  username: rob
  password:
  host: localhost
  port: 5432

run

bin/ar_dbcopy database.yml -c
Clone this wiki locally