Clean up strain-species relationship

This commit is contained in:
Matthew Dillon 2015-06-03 09:25:26 -08:00
parent afcf24a8d8
commit f3aaa4739d
9 changed files with 29 additions and 11 deletions

View file

@ -5,7 +5,7 @@ export default DS.Model.extend({
typeSpecies: DS.attr('boolean'),
etymology: DS.attr('string'),
genusName: DS.attr('string'),
strains: DS.hasMany('strain'),
strains: DS.hasMany('strain', { async: true }),
totalStrains: DS.attr('number'),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date'),

View file

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