db: add constraints to role tables
This commit is contained in:
parent
768b577f1e
commit
017625207e
8 changed files with 60 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue