1class CreateMailboxes < ActiveRecord::Migration 2 def self.up 3 create_table :mailboxes do |t| 4 t.column :title, :string, :default => 'title' 5 end 6 end 7 8 def self.down 9 drop_table :mailboxes 10 end 11end