ENH: Collection environment measurement (#65)

This commit is contained in:
Matthew Ryan Dillon 2018-01-14 18:01:12 -07:00 committed by GitHub
parent 56f8796eaf
commit 39f4789a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 103 additions and 4 deletions

View file

@ -0,0 +1,12 @@
import DS from 'ember-data';
const { Model, attr, belongsTo } = DS;
export default Model.extend({
dateMeasured: attr('string'),
timeMeasured: attr('string'),
waterTempC: attr('number'),
airTempC: attr('number'),
collection: belongsTo('collection'),
});

View file

@ -21,6 +21,7 @@ export default Model.extend({
collectionSpecies: hasMany('collection-species'),
datasheets: hasMany('datasheet-attachment'),
envMeasurements: hasMany('collection-measurement'),
// computed
species: computed.mapBy('collectionSpecies', 'species'),