Add EnterpriseFee model

This commit is contained in:
Rohan Mitchell
2012-11-15 13:42:55 +11:00
parent 9cb5ac95ff
commit 192d4993a1
5 changed files with 116 additions and 75 deletions

View 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