Skip to content

Commit

Permalink
Merge branch 'feature/models-association' of https://github.com/fmani…
Browse files Browse the repository at this point in the history
…mashaun/book-car-api into feature/models-association
  • Loading branch information
Estete9 committed Feb 15, 2024
2 parents a6cc589 + 2156c9f commit 0cd52b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,14 @@ GEM
nio4r (2.7.0)
nokogiri (1.16.2-x64-mingw-ucrt)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pg (1.5.4)
pg (1.5.4-x64-mingw-ucrt)
psych (5.1.2)
stringio
Expand Down Expand Up @@ -296,6 +299,7 @@ GEM

PLATFORMS
x64-mingw-ucrt
x86_64-linux

DEPENDENCIES
bootsnap
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class User < ApplicationRecord
devise :database_authenticatable, :registerable, :recoverable, :validatable, :jwt_authenticatable,
jwt_revocation_strategy: self

has_many :reservations
has_many :reservations, dependent: :destroy

enum role: { user: 0, admin: 1 }

Expand Down

0 comments on commit 0cd52b5

Please sign in to comment.