mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
ebab3b60a8
Fixed seed/initial_tasks data which created tasks in a non-sequential order (tested on Postgres) Added production-like example configuration
15 lines
611 B
JavaScript
15 lines
611 B
JavaScript
var config = require('config'),
|
|
orm = require('../../orm').configure(config.get('database')),
|
|
Tasks = require('../../db/models/task').instance(orm);
|
|
|
|
Tasks.bulkCreate([
|
|
{content: 'Welcome to HackFlowy!', isCompleted: false},
|
|
{content: 'An open-source WorkFlowy clone', isCompleted: false},
|
|
{content: 'Built using Backbone + Socket.IO', isCompleted: false},
|
|
{content: 'I pulled this together in a few hours to learn Backbone', isCompleted: false},
|
|
{content: 'Feel free to try it out and hack on it', isCompleted: false},
|
|
{content: 'Good Luck!', isCompleted: false}
|
|
]);
|
|
|
|
orm.sync();
|