cirandas.net

ref: master

plugins/smssync/db/migrate/20150307164056_create_smssync_plugin_message.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class CreateSmssyncPluginMessage < ActiveRecord::Migration
  def up
    create_table :smssync_plugin_messages do |t|
      t.string :uuid
      t.integer :chat_message_id

      t.integer :from_profile_id
      t.integer :to_profile_id
      t.string :from
      t.string :sent_to

      t.string :device_id
      t.text :message
      t.datetime :sent_timestamp

      t.timestamps
    end
  end

  def down
    drop_table :smssync_plugin_messages
  end
end