My personal way to do multi-applet migrations.
JavaScript Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
node
specs
.gitignore
Gemfile
LICENSE
README.md
VERSION
duck_duck_duck.gemspec

README.md

duck_duck_duck

You won't find this useful.

However, if you are still curious:

  • If you like to break up apps into smaller apps, and you want them to use the same db, but different tables, duck_duck_duck lets you migrate those mini-apps to the same db.

Previously...

Originally, this was a node module. The node module is no longer maintained. It is now a Ruby gem.

Commands

  cd /my/model/dir
  duck_duck_duck   up       MODEL_NAME
  duck_duck_duck   down     MODEL_NAME
  duck_duck_duck   create   MODEL_NAME  postfix

Sample .sql file:

  SELECT 1;
  -- DOWN
  SELECT 2

  -- UP:
  -- colons ":' are optional
  SELECT 3;

  -- DOWN:
  SELECT 4;