ENH: Convert sex fields to lookup (#76)

This commit is contained in:
Matthew Ryan Dillon 2018-03-03 12:10:12 -07:00 committed by GitHub
parent 6f01fbf00f
commit c87bd953d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 32 additions and 7 deletions

View file

@ -3,7 +3,7 @@ import DS from 'ember-data';
const { Model, attr, belongsTo } = DS;
export default Model.extend({
sex: attr('string'),
sex: belongsTo('sex'),
count: attr('number'),
countEstimated: attr('boolean', { defaultValue: false }),

8
app/models/sex.js Normal file
View file

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