mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
c0dc8e95d2
closes #2325 - added new permissions - added relation to user roles - added updateFixtures to migrateUp - removed validation per model to fix tests
21 lines
402 B
JavaScript
21 lines
402 B
JavaScript
var ghostBookshelf = require('./base'),
|
|
Post = require('./post').Post,
|
|
AppField,
|
|
AppFields;
|
|
|
|
AppField = ghostBookshelf.Model.extend({
|
|
tableName: 'app_fields',
|
|
|
|
post: function () {
|
|
return this.morphOne(Post, 'relatable');
|
|
}
|
|
});
|
|
|
|
AppFields = ghostBookshelf.Collection.extend({
|
|
model: AppField
|
|
});
|
|
|
|
module.exports = {
|
|
AppField: AppField,
|
|
AppFields: AppFields
|
|
}; |