create table sponsorship

This commit is contained in:
wyx
2020-07-24 17:21:16 +08:00
parent 8e2cf4ecc0
commit cb089b1bb8
25 changed files with 582 additions and 0 deletions

View File

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