Skip to content

Commit

Permalink
Update user model
Browse files Browse the repository at this point in the history
  • Loading branch information
fmanimashaun committed Feb 15, 2024
1 parent 80420a9 commit 2156c9f
Showing 1 changed file with 1 addition and 1 deletion.
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 2156c9f

Please sign in to comment.