class AddParticipant

Public Instance Methods

change() click to toggle source
# File lib/templates/chat/migration-models/add_participant.rb, line 2
def change
  create_table :participants do |t|
    t.belongs_to :user
    t.belongs_to :chat
    t.datetime        :last_connection
    t.string  :last_message_user
    t.boolean :seen_data
    t.timestamps
  end
end