import DS from 'ember-data'; import { validator, buildValidations } from 'ember-cp-validations'; const Validations = buildValidations({ 'countryCodeDms' : validator('presence', true), 'countryCodeHoyu' : validator('presence', true), 'countryName' : validator('presence', true), }); export default DS.Model.extend(Validations, { countryCodeDms: DS.attr('string'), countryCodeHoyu: DS.attr('string'), countryName: DS.attr('string'), });