Class: AddParticipant

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# 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