Sha256: 5a266612b363163099161b54694bb3bdf2dfc22723f7022e26db45ad0a143a2d
Contents?: true
Size: 514 Bytes
Versions: 5
Compression:
Stored size: 514 Bytes
Contents
module Mks module Rate class ServiceBundle < ApplicationRecord belongs_to :service_delivery_unit has_and_belongs_to_many :chargeable_services, join_table: 'mks_rate_service_bundles_chargeable_services' validates :code, :name, :percent_discount, presence: true validates :code, uniqueness: true validates_numericality_of :percent_discount, greater_than_or_equal_to: 0, less_than_or_equal_to: 100 delegate(:name, to: :service_delivery_unit, prefix: true) end end end
Version data entries
5 entries across 5 versions & 1 rubygems