mailr/db/migrate/20110727070907_create_folders.rb

18 lines
316 B
Ruby
Raw Normal View History

2011-07-27 20:34:30 +02:00
class CreateFolders < ActiveRecord::Migration
def self.up
create_table :folders do |t|
t.string :name
t.string :delim
t.string :attribs
t.integer :messages
t.integer :new
t.references :user
t.timestamps
end
end
def self.down
drop_table :folders
end
end