mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Add enterprise fees relation to enterprise
This commit is contained in:
@@ -8,6 +8,7 @@ class Enterprise < ActiveRecord::Base
|
||||
belongs_to :address, :class_name => 'Spree::Address'
|
||||
has_many :product_distributions, :foreign_key => 'distributor_id', :dependent => :destroy
|
||||
has_many :distributed_products, :through => :product_distributions, :source => :product
|
||||
has_many :enterprise_fees
|
||||
has_many :enterprise_roles
|
||||
has_many :users, through: :enterprise_roles
|
||||
|
||||
|
||||
Reference in New Issue
Block a user