update model stopped_sponsorship

This commit is contained in:
wyx 2020-07-25 11:23:57 +08:00
parent 50bef66261
commit d480deee64
1 changed files with 3 additions and 0 deletions

View File

@ -1,2 +1,5 @@
class StoppedSponsorship < ApplicationRecord
belongs_to :sponsor, class_name: 'User'
belongs_to :developer, class_name: 'User'
validates :amount, presence: true
end