Skip to content

Commit

Permalink
small fixes in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicius0026 committed Jan 27, 2017
1 parent 7e3c6f0 commit 6acd012
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,17 @@ exports.down = function (r, connection) {
$ rethinkdb-migrate up --db=mydb
```

This command will run all pending migrations up, in order of creation. See [Options](#options) section to configure this task.
This command will run all pending migrations up, in order of creation. See
[Options](#options) section to configure this task.

### Down

```shell
$ rethinkdb-migrate down --db=mydb
```

This command will run all `down` steps from migrations that have been run previously. See [Options](#options) section to configure this task.
This command will run all `down` steps from migrations that have been run
previously. See [Options](#options) section to configure this task.

### Options

Expand Down Expand Up @@ -145,7 +147,8 @@ Options can be passed to the script in three different ways:
- Via configuration files
- Via command line arguments

Command line options take precedence over all other forms of passing options. Configuration file options take precedence over environment files.
Command line options take precedence over all other forms of passing options.
Configuration file options take precedence over environment variables.

#### Passing options via environment variables

Expand All @@ -155,7 +158,8 @@ $ db=mydb rethinkdb-migrate up

#### Passing options via configuration file

Create a file that exports the options object (can be either a javascript file exporting a POJO, or a JSON file)
Create a file that exports the options object (can be either a javascript file
exporting an object, or a JSON file)


```javascript
Expand Down Expand Up @@ -184,7 +188,9 @@ $ rethinkdb-migrate down --db=mydb --host=127.0.0.1 --port=28016

## Contributing

Feel free to suggest improvements and to open PRs. Please add/modify tests to maintain high coverage. Also, code must follow [standard](https://github.com/feross/standard) style.
Feel free to suggest improvements and to open PRs. Please add/modify tests to
maintain high coverage. Also, code must follow
[standard](https://github.com/feross/standard) style.

### Running tests:

Expand Down

0 comments on commit 6acd012

Please sign in to comment.