summaryrefslogtreecommitdiff
path: root/db/migrate/20111222173947_remove_result_text_from_fax_documents.rb
blob: 46acafd4772846a44698762fa00615fba7def394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class RemoveResultTextFromFaxDocuments < ActiveRecord::Migration
  def up
    remove_column :fax_documents, :result_text
    add_column :fax_documents, :retry_counter, :integer
    add_column :fax_accounts, :retries, :integer
  end

  def down
    add_column :fax_documents, :result_text, :string
    remove_column :fax_documents, :retry_counter
    remove_column :fax_accounts, :retries
  end
end