Class: PackageType
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- PackageType
- Defined in:
- app/models/package_type.rb
Overview
Schema Information
Table name: package_types
id :bigint not null, primary key
active :boolean default(TRUE)
alt_text :text(65535)
color_code :string(191)
cover_img :string(191)
description :text(65535)
package_type_code :string(191)
title :string(191)
created_at :datetime not null
updated_at :datetime not null
package_type_id :bigint not null
Instance Method Summary collapse
Methods inherited from ApplicationRecord
Instance Method Details
#type_short ⇒ Object
30 31 32 |
# File 'app/models/package_type.rb', line 30 def type_short HhPackage::PACKAGE_SHORT_LIST_AND_LONG_NAME.invert[title] end |