Skip to content

Commit

Permalink
Merge pull request #43 from juandm/docs-change-migrations-table-name
Browse files Browse the repository at this point in the history
change migrations table name in .db-migraterc config file
  • Loading branch information
wzrdtales authored Jan 23, 2020
2 parents 2d41224 + a3d12c0 commit b93036e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/Getting Started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,19 @@ You can take a view over [here](https://github.com/dominictarr/rc#standards)
where to save those configs.

Most prominent locations are, the root directory where you currently execute
db-migrate and your `HOME` directory. The file is always named .db-migraterc,
db-migrate and your `HOME` directory. The file is always named `.db-migraterc`,
except for some examples you can find under the link above.

An example .db-migraterc config file could look like this:
An example `.db-migraterc` config file could look like this:

```json
{
"sql-file": true,
"configFile": "path/to/config/database.json"
"configFile": "path/to/config/database.json",
"table": "new_migration_table_name"
}
```
Use `table` property in `.db-migraterc` config file to change the default name of migrations table.

This would set activate the sql mode unless you would deactivate it in your
database.json again, which always has the highest priority.
Expand Down

0 comments on commit b93036e

Please sign in to comment.