Class: HhPackage::PricingSpendingTier

Inherits:
ApplicationRecord show all
Includes:
IdentityCache
Defined in:
app/models/hh_package/pricing_spending_tier.rb

Overview

Schema Information

Table name: hh_package_pricing_spending_tiers

id             :bigint           not null, primary key
discount_value :decimal(5, 2)
name           :string(191)
package_type   :string(191)      not null
price_cents    :integer
price_currency :string(191)
created_at     :datetime         not null
updated_at     :datetime         not null
package_id     :bigint           not null

Indexes

index_pricing_spending_tiers_on_package_id_type  (package_id,package_type)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url