* wip * add indiviual user partial * remove unnecessary attributes * wip * add indiviual user partial * remove unnecessary attributes * remove mentorship matching from view * fix linting * add mentor matching method back and refine test * remove duplicate mentee descriptions * Update app/controllers/internal/users_controller.rb Co-Authored-By: jessleenyc <jessleenyc@gmail.com>
5 lines
193 B
Ruby
5 lines
193 B
Ruby
class Note < ApplicationRecord
|
|
belongs_to :noteable, polymorphic: true, touch: true
|
|
belongs_to :author, class_name: "User", optional: true
|
|
validates :content, :reason, presence: true
|
|
end
|