ENH: IACUC and ADFG Permits (and search reset) (#43)

Fixes #30
This commit is contained in:
Matthew Ryan Dillon 2017-11-14 08:30:12 -07:00 committed by GitHub
parent 17651e071e
commit 93d70d3c95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 85 additions and 14 deletions

10
app/models/adfg-permit.js Normal file
View file

@ -0,0 +1,10 @@
import DS from 'ember-data';
const { Model, attr, hasMany } = DS;
export default Model.extend({
name: attr('string'),
sortOrder: attr('number'),
collection: hasMany('collection'),
});

View file

@ -16,6 +16,7 @@ export const schema = {
studyLocation: belongsTo('study-location'),
collectionMethod: belongsTo('collection-method'),
collectionType: belongsTo('collection-type'),
adfgPermit: belongsTo('adfg-permit'),
};
export default Model.extend(Object.assign({}, schema, {