Initial commit (history cleared)
CI / test (3.4.1) (push) Has been cancelled

This commit is contained in:
2026-04-29 11:21:39 +01:00
commit 298610b5f6
277 changed files with 30877 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# frozen_string_literal: true
class Message < ApplicationRecord
belongs_to :user
validates_presence_of :creator_id, :receiver_id, :message
def creator_name
if creator = User.where(id: self.creator_id).first
creator.full_name
else
"Name unavailable"
end
end
end