Skip to content
This repository has been archived by the owner on Oct 16, 2018. It is now read-only.

Relationships between Payola models (plans, subscriptions, sales)

Nate Welling edited this page Aug 5, 2017 · 3 revisions

has_many

belongs_to

Plan.rb (Payola::Plan)

has_many :subscriptions

Subscription.rb (Payola::Subscription)

has_many :sales

belongs_to :plan

belongs_to :owner

Sale.rb (Payola::Sale)

belongs_to :product

belongs_to :owner

Clone this wiki locally