db: add constraints to role tables

This commit is contained in:
Pierre de La Morinerie 2022-03-22 15:53:38 +00:00
parent 768b577f1e
commit 017625207e
8 changed files with 60 additions and 7 deletions

View file

@ -9,7 +9,7 @@
# created_at :datetime
# updated_at :datetime
# agent_connect_id :string
# user_id :bigint
# user_id :bigint not null
#
class Instructeur < ApplicationRecord
has_and_belongs_to_many :administrateurs