mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Add EnterpriseFee model
This commit is contained in:
8
app/models/enterprise_fee.rb
Normal file
8
app/models/enterprise_fee.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class EnterpriseFee < ActiveRecord::Base
|
||||
belongs_to :enterprise
|
||||
|
||||
FEE_TYPES = %w(Packing Transport Admin Sales)
|
||||
|
||||
validates_inclusion_of :fee_type, :in => FEE_TYPES
|
||||
validates_presence_of :name
|
||||
end
|
||||
Reference in New Issue
Block a user