demarches-normaliennes/app/models/exercice.rb

5 lines
139 B
Ruby

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