diaspora/db/migrate/20141024170120_create_chat_offline_messages.rb
Lukas Matt 56e882879a Add chat migration
* add chat_contacts table
* add chat_fragments table
* add chat_enabled column to aspects
* add chat_offline_messages table
2014-11-13 11:14:54 +01:00

14 lines
354 B
Ruby

class CreateChatOfflineMessages < ActiveRecord::Migration
def self.up
create_table :chat_offline_messages do |t|
t.string :from, :null => false
t.string :to, :null => false
t.text :message, :null => false
t.datetime "created_at", :null => false
end
end
def self.down
drop_table :chat_offline_messages
end
end