diff --git a/README.md b/README.md index 09b9d1a6..23f48426 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ export default DS.Model.extend(Validator,{ name: DS.attr('string'), email: DS.attr('string'), + legacyCode: DS.attr('string'), lotteryNumber: DS.attr('number'), otherFakes: DS.hasMany('other-model'), @@ -38,6 +39,9 @@ export default DS.Model.extend(Validator,{ presence: true, email: true }, + legacyCode:{ + format: {with: /^[a-zA-Z]+$/} + }, lotteryNumber: { numericality: true },