mailr/db/migrate/20110727134352_create_messages.rb
Wojciech Todryk 37f548ce46 devel
2011-07-27 20:34:30 +02:00

24 lines
439 B
Ruby
Executable file

class CreateMessages < ActiveRecord::Migration
def self.up
create_table :messages do |t|
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