ENH: Convert sex fields to lookup (#76)
This commit is contained in:
parent
6f01fbf00f
commit
c87bd953d9
10 changed files with 32 additions and 7 deletions
|
@ -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
8
app/models/sex.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import DS from 'ember-data';
|
||||
|
||||
const { Model, attr } = DS;
|
||||
|
||||
export default Model.extend({
|
||||
name: attr('string'),
|
||||
sortOrder: attr('number'),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue