mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +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
401 B
JavaScript
21 lines
401 B
JavaScript
var ghostBookshelf = require('./base'),
|
|
App = require('./app'),
|
|
AppSetting,
|
|
AppSettings;
|
|
|
|
AppSetting = ghostBookshelf.Model.extend({
|
|
tableName: 'app_settings',
|
|
|
|
app: function () {
|
|
return this.belongsTo(App);
|
|
}
|
|
});
|
|
|
|
AppSettings = ghostBookshelf.Collection.extend({
|
|
model: AppSetting
|
|
});
|
|
|
|
module.exports = {
|
|
AppSetting: AppSetting,
|
|
AppSettings: AppSettings
|
|
}; |