class AddMessage

Public Instance Methods

change() click to toggle source
# File lib/templates/chat/migration-models/add_message.rb, line 2
def change
  create_table :messages do |t|
    t.belongs_to :user
    t.belongs_to :chat
    t.string           :content
    t.string           :image
    t.integer          :image_orientation
    t.string           :message_type
    t.boolean          :sent
    t.boolean          :read
    t.timestamps
  end
end