Class: WindowInsulationType
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- WindowInsulationType
- Defined in:
- app/models/window_insulation_type.rb
Overview
== Schema Information
Table name: window_insulation_types
Database name: primary
id :integer not null, primary key
u_value :float
window_frame_type_id :integer
window_glass_type_id :integer
window_type_id :integer
Indexes
window_insulation_types_window_frame_type_id_idx (window_frame_type_id)
window_insulation_types_window_glass_type_id_idx (window_glass_type_id)
Foreign Keys
window_insulation_types_window_frame_type_id_fk (window_frame_type_id => window_frame_types.id)
window_insulation_types_window_glass_type_id_fk (window_glass_type_id => window_glass_types.id)
Constant Summary
Constants included from Schedulable
Schedulable::SIMPLE_FORM_OPTIONS
Belongs to collapse
Class Method Summary collapse
-
.by_window_type_id ⇒ ActiveRecord::Relation<WindowInsulationType>
A relation of WindowInsulationTypes that are by window type id.
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Schedulable
Methods included from Models::AfterCommittable
Methods included from Models::EventPublishable
Class Method Details
.by_window_type_id ⇒ ActiveRecord::Relation<WindowInsulationType>
A relation of WindowInsulationTypes that are by window type id. Active Record Scope
27 |
# File 'app/models/window_insulation_type.rb', line 27 scope :by_window_type_id, ->(id) { where(window_type_id: id) } |
Instance Method Details
#window_frame_type ⇒ WindowFrameType
26 |
# File 'app/models/window_insulation_type.rb', line 26 belongs_to :window_frame_type, optional: true |
#window_glass_type ⇒ WindowGlassType
25 |
# File 'app/models/window_insulation_type.rb', line 25 belongs_to :window_glass_type, optional: true |
#window_type ⇒ WindowType
24 |
# File 'app/models/window_insulation_type.rb', line 24 belongs_to :window_type, optional: true |