User Tools

Site Tools


software:rubyonrails

Table of Contents

Ruby on Rails

Rake

Taps

Taps allow you to migrate your data between different databases, unfortunately it have a well know bug using pull with recent version of rack. That's a simple workaround:

  1. Make a new dir and a new Gemfile inside
    $ mkdir taps && cd taps && nano Gemfile
  2. Paste this content:
    source 'https://rubygems.org'
    
    gem 'rack','1.0.1'
    gem 'taps'
    gem 'sqlite3'
    gem 'pg'
    gem 'mysql2'
  3. Save, close and run bundle
    $ bundle
  4. Run taps server:
    $ bundle exec taps server postgres://user:pass@host:port/origin_db_name?encoding=UTF8 db db
  5. Migrate!
    $ taps pull mysql://user:pass@host:port/destination_db_name?encoding=UTF8 http://db:db@localhost:5000
software/rubyonrails.txt · Last modified: 2017/10/11 03:01 by Michele Porelli