mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
2c3abeee03
closes #4069 - Rename everything from camelCase to lowercase + dashes - Remove usage of `server`, `app` and `instance`
21 lines
444 B
JavaScript
21 lines
444 B
JavaScript
var ghostBookshelf = require('./base'),
|
|
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: ghostBookshelf.model('AppField', AppField),
|
|
AppFields: ghostBookshelf.collection('AppFields', AppFields)
|
|
};
|