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

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