Clean up models

This commit is contained in:
Matthew Dillon 2015-09-09 11:40:15 -07:00
parent 37d7ca0029
commit 137ba20bd9
3 changed files with 6 additions and 5 deletions

View file

@ -3,8 +3,8 @@ import DS from 'ember-data';
export default DS.Model.extend({
characteristicName : DS.attr('string'),
characteristicTypeName: DS.attr('string'),
strains : DS.hasMany('strain', { async: true }),
measurements : DS.hasMany('measurements', { async: true }),
strains : DS.hasMany('strain', { async: false }),
measurements : DS.hasMany('measurements', { async: false }),
createdAt : DS.attr('date'),
updatedAt : DS.attr('date'),
deletedAt : DS.attr('date'),

View file

@ -1,8 +1,8 @@
import DS from 'ember-data';
export default DS.Model.extend({
strain : DS.belongsTo('strain', { async: true }),
characteristic : DS.belongsTo('characteristic', { async: true }),
strain : DS.belongsTo('strain', { async: false }),
characteristic : DS.belongsTo('characteristic', { async: false }),
textMeasurementType: DS.attr('string'),
txtValue : DS.attr('string'),
numValue : DS.attr('number'),

View file

@ -2,7 +2,8 @@ import DS from 'ember-data';
import Ember from 'ember';
export default DS.Model.extend({
measurements : DS.hasMany('measurements', { async: true }),
measurements : DS.hasMany('measurements', { async: false }),
characteristics : DS.hasMany('characteristics', { async: false }),
species : DS.belongsTo('species', { async: false }),
strainName : DS.attr('string'),
typeStrain : DS.attr('boolean'),