Module: Countriable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/countriable.rb
Overview
Schema Information
Table name: countries
id :bigint not null, primary key code :string(4) not null name :string(255) not null nationality :string(255) created_at :datetime not null updated_at :datetime not null
Indexes
index_countries_on_code (code) UNIQUE index_countries_on_name (name) UNIQUE
Instance Method Summary collapse
Instance Method Details
#ensure_countriable_setup ⇒ Object
27 28 29 |
# File 'app/models/concerns/countriable.rb', line 27 def ensure_countriable_setup self.class.setup_countriable unless self.class.reflect_on_association(:country_model) end |