demarches-normaliennes/app/models/exercice.rb
2023-08-02 11:43:23 +02:00

5 lines
155 B
Ruby

class Exercice < ApplicationRecord
belongs_to :etablissement, optional: false
validates :ca, presence: true, allow_blank: false, allow_nil: false
end