shopping cart

This commit is contained in:
Karol Selak 2021-03-22 02:25:17 +01:00
parent 733870ce96
commit df7585c5e1
11 changed files with 79 additions and 11 deletions

View file

@ -1,4 +1,6 @@
class User < ApplicationRecord
has_and_belongs_to_many :books
has_secure_password
has_secure_password :recovery_password, validations: false
enum role: [:customer, :admin], _default: :customer