Sha256: e7e930cce0c22f799aef28786d0c93704bf8d88a2d92b1b6cca907c430d74b85

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

require 'whatup/server/models/application_record'

module Whatup
  module Server
    class Message < ApplicationRecord
      belongs_to :recipient, class_name: 'Client'
      belongs_to :sender, class_name: 'Client', foreign_key: 'sender_id'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whatup-0.3.4 lib/whatup/server/models/message.rb
whatup-0.3.3 lib/whatup/server/models/message.rb
whatup-0.3.2 lib/whatup/server/models/message.rb
whatup-0.3.1 lib/whatup/server/models/message.rb
whatup-0.3.0 lib/whatup/server/models/message.rb
whatup-0.2.5 lib/whatup/server/models/message.rb