Class: CliftonStrength
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- CliftonStrength
- Defined in:
- app/models/clifton_strength.rb
Overview
== Schema Information
Table name: clifton_strengths
Database name: primary
id :integer not null, primary key
description :text not null
name :string(255) not null
youtube_id :string(30)
Indexes
index_clifton_strengths_on_name (name) UNIQUE
Has many collapse
Class Method Summary collapse
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::EventPublishable
Class Method Details
.select_options ⇒ Object
19 20 21 |
# File 'app/models/clifton_strength.rb', line 19 def self. all.order(:name).map{|s| [s.name, s.id]} end |
Instance Method Details
#employees_themes ⇒ ActiveRecord::Relation<EmployeesTheme>
17 |
# File 'app/models/clifton_strength.rb', line 17 has_many :employees_themes |