Skip to content

Commit

Permalink
docs(transactions): fix addIndex example and grammar (#11759)
Browse files Browse the repository at this point in the history
  • Loading branch information
deezone authored and papb committed Dec 23, 2019
1 parent 3acc76d commit 712335b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/manual/migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ module.exports = {
};
```

The next is an example of a migration that has a foreign key. You can use references to specify a foreign key:
The next example is of a migration that has a foreign key. You can use references to specify a foreign key:

```js
module.exports = {
Expand Down Expand Up @@ -291,7 +291,7 @@ module.exports = {

```

The next is an example of a migration that has uses async/await where you create an unique index on a new column:
The next example is of a migration that uses async/await where you create an unique index on a new column:

```js
module.exports = {
Expand All @@ -312,8 +312,8 @@ module.exports = {
{
fields: 'petName',
unique: true,
},
{ transaction }
transaction,
}
);
await transaction.commit();
} catch (err) {
Expand Down

0 comments on commit 712335b

Please sign in to comment.