Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/rmi22186/sequelize into …
Browse files Browse the repository at this point in the history
…rmi22186-patch-2

Conflicts:
	docs/docs/models.md
  • Loading branch information
mickhansen committed Jan 27, 2015
2 parents f1a930c + c3c5b71 commit 2ae844c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/models.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Definition

To define mappings between a model and a table, use the `define` method. Sequelize will then automatically add the attributes `createdAt` and `updatedAt` to it. So you will be able to know when the database entry went into the db and when it was updated the last time. If you do not want timestamps on your models, only want some timestamps, or you are working with an existing database where the columns are named something else, jump straight on to [configuration ][0]to see how to do that.
To define mappings between a model and a table, use the `define` method. Sequelize will then automatically add the attributes `createdAt` and `updatedAt` to it. So you will be able to know when the database entry went into the db and when it was updated the last time. If you do not want timestamps on your models, only want some timestamps, or you are working with an existing database where the columns are named something else, jump straight on to [configuration ][0]to see how to do that.


```js
var Project = sequelize.define('Project', {
Expand Down

0 comments on commit 2ae844c

Please sign in to comment.