From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- db/migrate/20111218085222_create_fax_documents.rb | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 db/migrate/20111218085222_create_fax_documents.rb (limited to 'db/migrate/20111218085222_create_fax_documents.rb') 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 -- cgit v1.2.3