Class: Voltage
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Voltage
- Defined in:
- app/models/voltage.rb
Overview
== Schema Information
Table name: voltages
Database name: primary
id :integer not null, primary key
Constant Summary
Constants included from Schedulable
Schedulable::SIMPLE_FORM_OPTIONS
Class Method Summary collapse
Instance Method Summary collapse
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
.options_for_select ⇒ Object
10 11 12 |
# File 'app/models/voltage.rb', line 10 def self. order(:id).ids end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'app/models/voltage.rb', line 14 def to_s "#{id} V" end |