class Note < ActiveRecord::Base
    belongs_to :author
    validates :title, presence: true, length: { minimum: 3, maximum:50 }
    validates :description, presence: true, length: { minimum: 10, maximum:100 }
    validates :author_id, presence: true
end

