summaryrefslogtreecommitdiff
path: root/db/migrate/20111218085222_create_fax_documents.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
commitb80bd744ad873f6fc43018bc4bfb90677de167bd (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /db/migrate/20111218085222_create_fax_documents.rb
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
Start of GS5.
Diffstat (limited to 'db/migrate/20111218085222_create_fax_documents.rb')
-rw-r--r--db/migrate/20111218085222_create_fax_documents.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/db/migrate/20111218085222_create_fax_documents.rb b/db/migrate/20111218085222_create_fax_documents.rb
new file mode 100644
index 0000000..00bf73f
--- /dev/null
+++ b/db/migrate/20111218085222_create_fax_documents.rb
@@ -0,0 +1,32 @@
+class CreateFaxDocuments < ActiveRecord::Migration
+ def self.up
+ create_table :fax_documents do |t|
+ t.string :fax_documentable_type
+ t.integer :fax_documentable_id
+ t.boolean :inbound
+ t.string :state
+ t.integer :transmission_time
+ t.datetime :sent_at
+ t.integer :document_total_pages
+ t.integer :document_transferred_pages
+ t.boolean :ecm_requested
+ t.boolean :ecm_used
+ t.string :image_resolution
+ t.string :image_size
+ t.string :local_station_id
+ t.integer :result_code
+ t.string :result_text
+ t.string :remote_station_id
+ t.boolean :success
+ t.integer :transfer_rate
+ t.string :t38_gateway_format
+ t.string :t38_peer
+ t.string :document
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :fax_documents
+ end
+end