added 260907 version of worker toolkit
This commit is contained in:
20
worker-toolkit-flaredown/repo/backend/app/models/feedback.rb
Normal file
20
worker-toolkit-flaredown/repo/backend/app/models/feedback.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
class Feedback
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
#
|
||||
# Fields
|
||||
#
|
||||
field :email, type: String
|
||||
field :delete_reason, type: String
|
||||
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
index(date: 1, encrypted_user_id: 1)
|
||||
|
||||
#
|
||||
# Validations
|
||||
#
|
||||
validates :email, :delete_reason, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user