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
|
2020-07-20 16:42:01 +02:00
|
|
|
belongs_to :etablissement, optional: false
|
2016-01-20 10:34:22 +01:00
|
|
|
|
|
|
|
validates :ca, presence: true, allow_blank: false, allow_nil: false
|
2015-11-16 11:23:29 +01:00
|
|
|
end
|