summaryrefslogtreecommitdiff
path: root/db/migrate/20120822124716_create_acd_agents.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20120822124716_create_acd_agents.rb')
-rw-r--r--db/migrate/20120822124716_create_acd_agents.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20120822124716_create_acd_agents.rb b/db/migrate/20120822124716_create_acd_agents.rb
new file mode 100644
index 0000000..bfd1ab6
--- /dev/null
+++ b/db/migrate/20120822124716_create_acd_agents.rb
@@ -0,0 +1,19 @@
+class CreateAcdAgents < ActiveRecord::Migration
+ def self.up
+ create_table :acd_agents do |t|
+ t.string :uuid
+ t.string :name
+ t.string :status
+ t.integer :automatic_call_distributor_id
+ t.datetime :last_call
+ t.integer :calls_answered
+ t.string :destination_type
+ t.integer :destination_id
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :acd_agents
+ end
+end