demarches-normaliennes/app/models/exercice.rb

19 lines
563 B
Ruby
Raw Normal View History

2020-08-06 16:35:45 +02:00
# == 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
#
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