85a588541b
wip(dossier_created_hook): add tile to administrateurs/procedure#show in order to crud dossier_created_hook refactor(css.utilities): remove merge helpers.scss within utils.scss (same purpose). use scss each for spacer modifiers refactor(dossiers/_merci.html): extract partial _merci so we can re-use it in preview of dossier_created_hook. feat(wip): current progress
14 lines
416 B
Ruby
14 lines
416 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: zones
|
|
#
|
|
# id :bigint not null, primary key
|
|
# acronym :string not null
|
|
# label :string
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
class Zone < ApplicationRecord
|
|
validates :acronym, presence: true, uniqueness: true
|
|
has_many :procedures, -> { order(published_at: :desc) }, inverse_of: :zone
|
|
end
|