demarches-normaliennes/app/models/zone.rb
Christophe Robillard 219eaf0d5e add zone model
2021-12-02 19:16:11 +01:00

13 lines
320 B
Ruby

# == Schema Information
#
# Table name: zones
#
# id :bigint not null, primary key
# acronym :string
# label :string
# created_at :datetime not null
# updated_at :datetime not null
#
class Zone < ApplicationRecord
validates :acronym, presence: true, uniqueness: true
end