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:
- Make a new dir and a new Gemfile inside
$ mkdir taps && cd taps && nano Gemfile
- Paste this content:
source 'https://rubygems.org' gem 'rack','1.0.1' gem 'taps' gem 'sqlite3' gem 'pg' gem 'mysql2'
- Save, close and run bundle
$ bundle
- Run taps server:
$ bundle exec taps server postgres://user:pass@host:port/origin_db_name?encoding=UTF8 db db
- 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