lib/wco/subscription.rb in ish_models-0.0.33.261 vs lib/wco/subscription.rb in ish_models-0.0.33.262
- old
+ new
@@ -4,11 +4,15 @@
include Mongoid::Timestamps
field :customer_id, type: :string # stripe
field :price_id, type: :string # stripe
- # belongs_to :organization, class_name: '::Wco::Organization', inverse_of: :subscriptions
+ field :leadset_id
+
belongs_to :product, class_name: '::Wco::Product', inverse_of: :subscriptions
+
+ belongs_to :profile, class_name: '::Ish::UserProfile', optional: true, inverse_of: :subscriptions
+
end