Class: FloorPlanDisplayRoomConfiguration
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- FloorPlanDisplayRoomConfiguration
- Defined in:
- app/models/floor_plan_display_room_configuration.rb
Overview
== Schema Information
Table name: floor_plan_display_room_configurations
Database name: primary
id :bigint not null, primary key
cost_to_operate :decimal(, )
room_description :text
room_name :string
floor_plan_display_id :bigint not null
room_configuration_id :bigint not null
Indexes
idx_fpdr_floor_plan_display_id (floor_plan_display_id)
idx_fpdr_room_configuration_id (room_configuration_id)
Foreign Keys
fk_rails_... (floor_plan_display_id => floor_plan_displays.id)
fk_rails_... (room_configuration_id => room_configurations.id)
Constant Summary
Constants included from Models::Schedulable
Models::Schedulable::SIMPLE_FORM_OPTIONS
Instance Attribute Summary collapse
-
#cost_to_operate ⇒ BigDecimal
Estimated operating cost.
-
#room_name ⇒ String
Display name for the room.
Belongs to collapse
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::Schedulable
Methods included from Models::AfterCommittable
Methods included from Models::EventPublishable
Instance Attribute Details
#cost_to_operate ⇒ BigDecimal
Returns Estimated operating cost.
35 |
# File 'app/models/floor_plan_display_room_configuration.rb', line 35 validates :cost_to_operate, presence: true, numericality: { greater_than_or_equal_to: 0 } |
#room_name ⇒ String
Returns Display name for the room.
32 |
# File 'app/models/floor_plan_display_room_configuration.rb', line 32 validates :room_name, presence: true |
Instance Method Details
#floor_plan_display ⇒ FloorPlanDisplay
26 |
# File 'app/models/floor_plan_display_room_configuration.rb', line 26 belongs_to :floor_plan_display |
#room_configuration ⇒ RoomConfiguration
28 |
# File 'app/models/floor_plan_display_room_configuration.rb', line 28 belongs_to :room_configuration |