Skip to content

Commit

Permalink
add validation
Browse files Browse the repository at this point in the history
  • Loading branch information
oma-s committed Apr 5, 2024
1 parent 484f592 commit 134fdc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/daily_nerd_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
class DailyNerdMessage < ApplicationRecord
belongs_to :sprint_feedback

validates :message, presence: true

def push_to_slack
User::SlackNotification.new(sprint_feedback.user).post_daily_nerd_message(message)
end
Expand Down

0 comments on commit 134fdc4

Please sign in to comment.