Added some models
User Item Department Categorie AssignmentLog Room
This commit is contained in:
7
app/models/assignment_log.rb
Normal file
7
app/models/assignment_log.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class AssignmentLog < ApplicationRecord
|
||||
belongs_to :item
|
||||
belongs_to :user, optional: true
|
||||
belongs_to :room, optional: true
|
||||
|
||||
validates :assigned_at, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user