Added Category and User Passwort Change
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
class Category < ApplicationRecord
|
||||
has_many :items, dependent: :restrict_with_error
|
||||
|
||||
validates :name, presence: true, uniqueness: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user