class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :<%= table_name %> do |t| t.column :from, :string t.column :to, :string t.column :last_send_attempt, :integer, :default => 0 t.column :mail, :text, :limit=>4294967295 t.column :worker, :string, :default=>"" t.column :created_on, :datetime t.column :deliver_at, :datetime end add_index :<%= table_name %>, :worker add_index :<%= table_name %>, :deliver_at end def self.down drop_table :<%= table_name %> end end