Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermechapiewski committed May 20, 2009
2 parents 30a8785 + 082ea11 commit 7330f33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.textile
Expand Up @@ -43,6 +43,8 @@ Second, you have to configure access to your MySQL database so simple-db-migrate
USERNAME = "root"
PASSWORD = ""
DATABASE = "migration_example"
# relative path from the location of this file
MIGRATIONS_DIR = "."

You don't need to create the database. simple-db-migrate will create it for you.

Expand All @@ -56,9 +58,9 @@ If you don't want to navigate to the directory, you can specify it path instead.

h2. Migrating to a specific version

If you want you can migrate your database schema to specific version by informing the --version parameter. The version id is the YYYYMMDDHHMMSS identifier used at the migration file:
If you want you can migrate your database schema to specific version by informing the --migration (or -m) parameter. The version id is the YYYYMMDDHHMMSS identifier used at the migration file:

$ db-migrate --version=20090227000129
$ db-migrate --migration=20090227000129

If you don't specify any version, simple-db-migrate will migrate the schema to the latest version available on the migrations directory.

Expand Down

0 comments on commit 7330f33

Please sign in to comment.