#---
# Excerpted from "Rails Recipes"
# We make no guarantees that this code is fit for any purpose. 
# Visit http://www.pragmaticprogrammer.com/titles/fr_rr for more book information.
#---
class AddDeliveriesTable < ActiveRecord::Migration
  def self.up
    create_table :deliveries do |t|
      t.column :message_id, :string  
      t.column :recipient, :string
      t.column :content, :text
      t.column :status, :string
    end
  end

  def self.down                
    drop_table :deliveries
  end
end
