one-click-orgs

https://github.com/oneclickorgs/one-click-orgs

Ruby

Create legal organisations with just one click

#migrate_rows

Migrate rows from one DB to another, translating primary keys.
Returns a mapping: old PK => new PK

Source | Google | Stack overflow

Edit

git clone [email protected]:oneclickorgs/one-click-orgs.git

cd one-click-orgs

open doc/tools/migrate_beta_db.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs--migrate_rows-for-pr


# Commit to git

git add doc/tools/migrate_beta_db.rbgit commit -m "better docs for #migrate_rows"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs--migrate_rows-for-pr

hub pull-request


# Celebrate!