Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(*): corrects async/await example that uses transactions #11759

Merged
merged 2 commits into from
Dec 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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