* add chat_contacts table * add chat_fragments table * add chat_enabled column to aspects * add chat_offline_messages table
14 lines
354 B
Ruby
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
|