Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
payment source will have multiple paymets made using it
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohnish Thallavajhula committed Mar 7, 2015
1 parent b7ed214 commit af88e69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/payment_source.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class PaymentSource < ActiveRecord::Base
belongs_to :user
has_many :payments

validates_presence_of :user
validates_uniqueness_of :name, scope: [:type, :user]
Expand Down

0 comments on commit af88e69

Please sign in to comment.