Class: SkylightInsulationType

Inherits:
ApplicationRecord show all
Defined in:
app/models/skylight_insulation_type.rb

Overview

== Schema Information

Table name: skylight_insulation_types
Database name: primary

id :integer not null, primary key
u_value :float
skylight_frame_type_id :integer
skylight_glass_type_id :integer

Indexes

skylight_insulation_types_skylight_frame_type_id_idx (skylight_frame_type_id)
skylight_insulation_types_skylight_glass_type_id_idx (skylight_glass_type_id)

Foreign Keys

skylight_insulation_types_skylight_frame_type_id_fk (skylight_frame_type_id => skylight_frame_types.id)
skylight_insulation_types_skylight_glass_type_id_fk (skylight_glass_type_id => skylight_glass_types.id)

Belongs to collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Instance Method Details

#skylight_frame_typeSkylightFrameType



30
# File 'app/models/skylight_insulation_type.rb', line 30

belongs_to :skylight_frame_type, optional: true

#skylight_glass_typeSkylightGlassType

room_configuration has_one under_floor, ceiling; has_many exterior_walls
under_floor belongs_to room_configuration, under_floor_type, under_floor_insulation_type
ceiling has_many skylights; belongs_to room_configuration, ceiling_type, ceiling_insulation_type
skylight belongs_to ceiling, skylight_glass_type, skylight_frame_type, skylight_insulation_type
exterior_wall has_many windows, doors; belongs_to room_configuration, exterior_wall_type, exterior_wall_insulation_type
window belongs_to exterior_wall, window_type, window_glass_type, window_frame_type, window_insulation_type
door belongs_to exterior_wall, door_type, door_core_type, door_frame_type, door_insulation_type



29
# File 'app/models/skylight_insulation_type.rb', line 29

belongs_to :skylight_glass_type, optional: true