Class: Message

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
lib/templates/chat/migration-models/message.rb

Overview

Schema Information

Table name: messages

id                :integer          not null, primary key
user_id           :integer
chat_id           :integer
content           :string
image             :string
image_orientation :integer
message_type      :string
sent              :boolean
read              :boolean
created_at        :datetime         not null
updated_at        :datetime         not null

Indexes

index_messages_on_chat_id  (chat_id)
index_messages_on_user_id  (user_id)