Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilWaldmann committed Aug 20, 2018
2 parents ffbe7ea + cedadcb commit 03a9966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/migrations.md
Expand Up @@ -47,7 +47,7 @@ Available methods in the `migration scope` are:

## createTable(name, options, fn)

Creates a new table. The `options` objecz is optional, valid values are:
Creates a new table. The `options` object is optional, valid values are:
* **id** Set to `false` to disable the automatic creation of an `id` column with auto increment and primary key

`fn` is a function which provides the `table scope`!
Expand All @@ -66,7 +66,7 @@ this.createTable('users', function(){
})
```

The `table scope` has a method vor every [data type](./definition.md#attributename-type-options). The first argument hast to be the `name` of the column, the second is an optional `options` object. Valid `options` are:
The `table scope` has a method vor every [data type](./definition.md#attributename-type-options). The first argument has to be the `name` of the column, the second is an optional `options` object. Valid `options` are:
* **primary**: Set to `true` for a primary key
* **unique**: Set to `true` to use a uniq constraint
* **default**: Set a default value
Expand Down Expand Up @@ -120,4 +120,4 @@ module.exports = function(){
return User.create({login: 'phil'})
})
}
```
```

0 comments on commit 03a9966

Please sign in to comment.