不要怂,就是干,撸起袖子干!

Commit 712335b0 by Darren "Dee" Lee Committed by Pedro Augusto de Paula Barbosa

docs(transactions): fix addIndex example and grammar (#11759)

1 parent 3acc76dc
Showing with 4 additions and 4 deletions
...@@ -258,7 +258,7 @@ module.exports = { ...@@ -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 ```js
module.exports = { module.exports = {
...@@ -291,7 +291,7 @@ module.exports = { ...@@ -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 ```js
module.exports = { module.exports = {
...@@ -312,8 +312,8 @@ module.exports = { ...@@ -312,8 +312,8 @@ module.exports = {
{ {
fields: 'petName', fields: 'petName',
unique: true, unique: true,
}, transaction,
{ transaction } }
); );
await transaction.commit(); await transaction.commit();
} catch (err) { } catch (err) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!