5 lines
155 B
Ruby
5 lines
155 B
Ruby
class Exercice < ApplicationRecord
|
|
belongs_to :etablissement, optional: false
|
|
|
|
validates :ca, presence: true, allow_blank: false, allow_nil: false
|
|
end
|