xieyunzi / rails-5-standalone-migration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

standalone rails database migrations by docker

usage

$ tree -L 1
.
├── Dockerfile
├── README.md
├── app/
├── bin/
├── docker-compose.yml
└── migrations/

# don't touch anything under `app/` directory
# cd `migrations` and copy `user` to `yourapp`, change database name in `config.yml`

docker-compose build
APP_NAME=yourapp ./bin/sh

references

https://github.com/thuss/standalone-migrations

About


Languages

Language:Ruby 87.5%Language:JavaScript 4.9%Language:CSS 3.0%Language:HTML 2.4%Language:Shell 2.2%