Initial commit
This commit is contained in:
7
app/models/note.rb
Normal file
7
app/models/note.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Note < ApplicationRecord
|
||||
include Syncable
|
||||
belongs_to :user, optional: true
|
||||
belongs_to :notable, polymorphic: true
|
||||
|
||||
validates :content, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user