attr = DS.attr
App.ProductVariant = DS.Model.extend Ember.Validations.Mixin,
  name: attr 'string'
  product: DS.belongsTo 'product'
  position: attr 'number', defaultValue: 0
  validations:
    name:
      presence: true
