New database with migrations

This commit is contained in:
Jori Lallo
2016-06-20 00:18:03 -07:00
parent f2732aacab
commit 24e02bfdc4
12 changed files with 361 additions and 49 deletions

View File

@ -10,8 +10,6 @@ import {
import {
truncateMarkdown,
} from '../utils/truncate';
import Atlas from './Atlas';
import Team from './Team';
import User from './User';
slug.defaults.mode ='rfc3986';
@ -51,8 +49,6 @@ const Document = sequelize.define('document', {
}
});
Document.belongsTo(Atlas, { as: 'atlas' });
Document.belongsTo(Team);
Document.belongsTo(User);
export default Document;