demarches-normaliennes/app/models/exercice.rb
2020-08-12 11:45:53 +02:00

18 lines
546 B
Ruby

# == Schema Information
#
# Table name: exercices
#
# id :integer not null, primary key
# ca :string
# dateFinExercice :datetime
# date_fin_exercice :datetime
# date_fin_exercice_timestamp :integer
# created_at :datetime
# updated_at :datetime
# etablissement_id :integer
#
class Exercice < ApplicationRecord
belongs_to :etablissement
validates :ca, presence: true, allow_blank: false, allow_nil: false
end