app/models/tang/subscription.rb in tang-0.0.8 vs app/models/tang/subscription.rb in tang-0.0.9

- old
+ new

@@ -27,10 +27,10 @@ end end belongs_to :customer, class_name: Tang.customer_class.to_s belongs_to :plan - belongs_to :coupon + belongs_to :coupon, optional: true has_many :invoices, dependent: :destroy validates :customer, presence: true validates :plan, presence: true validates :stripe_id, presence: true, uniqueness: true