docbrown/app/models/note.rb
Jess Lee 4214bcbbf6 Add user status to internal/users (#1444)
* 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>
2019-01-03 16:44:43 -05:00

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