Commit e7926115 authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei

Fix create notifications request

Signed-off-by: Bruno Freitas Tissei's avatarBruno Freitas Tissei <bft15@inf.ufpr.br>
parent 88cf08c3
Pipeline #14204 failed with stage
in 1 minute and 16 seconds
......@@ -77,6 +77,7 @@ module Api::V1
private
# Use callbacks to share common setup or constraints between actions.
def set_notification
begin
......
......@@ -5,6 +5,7 @@ class Notification < ApplicationRecord
validates_presence_of :account_id,
:reminder_time,
:read,
:content
validates_inclusion_of :read, in: [true, false]
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment