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

@ -5,7 +5,7 @@
# id :bigint not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# user_id :bigint
# user_id :bigint not null
#
class Expert < ApplicationRecord
belongs_to :user