demarches-normaliennes/app/models/exercice.rb

6 lines
155 B
Ruby
Raw Normal View History

2018-03-06 13:44:29 +01:00
class Exercice < ApplicationRecord
belongs_to :etablissement, optional: false
validates :ca, presence: true, allow_blank: false, allow_nil: false
end