class CreateSubscriptions < ActiveRecord::Migration
  def self.up
    create_table :subscriptions do |t|
      t.column :subscribable_id,   :integer
      t.column :subscribable_type, :string
      t.column :reader_id,         :integer
      t.column :subscription_type, :string
      t.column :cancellation_date, :date
      t.column :created_on,        :date
    end
  end

  def self.down
    drop_table :subscriptions
  end
end