Class: Message
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Message
- 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
(chat_id)
(user_id)