summaryrefslogtreecommitdiff
path: root/db/migrate/20111212193532_create_faxes.rb
blob: d713f2d6e2a73abcf7e65350349b14bdacc767f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class CreateFaxes < ActiveRecord::Migration
  def self.up
    create_table :faxes do |t|
      t.boolean :inbound
      t.string :pdf
      t.integer :faxable_id
      t.string :faxable_type
      t.string :state
      t.integer :number_of_pages
      t.integer :transmission_time
      t.datetime :sent_at
      t.timestamps
    end
  end

  def self.down
    drop_table :faxes
  end
end