Class: AddChat

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/templates/chat/migration-models/add_chat.rb', line 2

def change
  create_table :chats do |t|
    t.string  :name
    t.string  :last_message
    t.timestamps
  end
end