demarches-normaliennes/app/models/experts_procedure.rb
2021-01-20 18:03:05 +01:00

16 lines
551 B
Ruby

# == Schema Information
#
# Table name: experts_procedures
#
# id :bigint not null, primary key
# allow_decision_access :boolean default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
# expert_id :bigint not null
# procedure_id :bigint not null
#
class ExpertsProcedure < ApplicationRecord
belongs_to :expert
belongs_to :procedure
validates :expert, uniqueness: { scope: :procedure }
end