demarches-normaliennes/app/models/exercice.rb
2018-05-24 17:54:51 +02:00

5 lines
138 B
Ruby

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