Changed configuration parameters' names to match sequelize nomemclature

Fixed seed/initial_tasks data which created tasks in a non-sequential order (tested on Postgres)
Added production-like example configuration
This commit is contained in:
DC*
2014-08-08 00:47:38 -03:00
parent d33305986c
commit ebab3b60a8
5 changed files with 29 additions and 14 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ var Sequelize = require('sequelize');
module.exports = {
instance: function(orm) {
task = orm.define('Tasks', {
id : {type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true},
id : {type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true},
content : {type: Sequelize.TEXT, allowNull: false},
parent : Sequelize.INTEGER,
parent : Sequelize.INTEGER,
isCompleted: Sequelize.BOOLEAN,
createdAt : Sequelize.DATE,
updatedAt : Sequelize.DATE