summaryrefslogtreecommitdiff
path: root/db/migrate/20111219163426_remove_fax_documentable_from_fax_documents.rb
blob: f8a55ec1373fd8854a244a333bd1c737e3044ca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
class RemoveFaxDocumentableFromFaxDocuments < ActiveRecord::Migration
  def up
    remove_column :fax_documents, :fax_documentable_type
    remove_column :fax_documents, :fax_documentable_id
  end

  def down
    add_column :fax_documents, :fax_documentable_id, :integer
    add_column :fax_documents, :fax_documentable_type, :string
  end
end