diff options
Diffstat (limited to 'billing/app')
-rw-r--r-- | billing/app/models/customer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/billing/app/models/customer.rb b/billing/app/models/customer.rb index 161f763..7d35756 100644 --- a/billing/app/models/customer.rb +++ b/billing/app/models/customer.rb @@ -6,6 +6,8 @@ class Customer < CouchRest::Model::Base belongs_to :user property :braintree_customer_id + validates :user, presence: true + design do view :by_user_id view :by_braintree_customer_id |