2011-07-27 20:34:30 +02:00
|
|
|
class CreateMessages < ActiveRecord::Migration
|
|
|
|
def self.up
|
2011-08-26 22:59:43 +02:00
|
|
|
create_table :messages ,:id => false do |t|
|
2011-07-27 20:34:30 +02:00
|
|
|
t.integer :folder_id
|
|
|
|
t.integer :user_id
|
|
|
|
t.string :msg_id
|
|
|
|
t.string :from
|
|
|
|
t.string :to
|
|
|
|
t.string :subject
|
|
|
|
t.string :content_type
|
|
|
|
t.integer :uid
|
|
|
|
t.integer :size
|
|
|
|
t.boolean :unread
|
|
|
|
t.datetime :date
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :messages
|
|
|
|
end
|
|
|
|
end
|