summaryrefslogtreecommitdiff
path: root/db/migrate/20120821105942_create_automatic_call_distributors.rb
blob: 6bfa9213c2b9b5bf31c2da4a02dc8db99f304830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class CreateAutomaticCallDistributors < ActiveRecord::Migration
  def self.up
    create_table :automatic_call_distributors do |t|
      t.string :uuid
      t.string :name
      t.string :strategy
      t.string :automatic_call_distributorable_type
      t.integer :automatic_call_distributorable_id
      t.integer :max_callers
      t.integer :agent_timeout
      t.integer :retry_timeout
      t.string :join
      t.string :leave
      t.integer :gs_node_id
      t.timestamps
    end
  end

  def self.down
    drop_table :automatic_call_distributors
  end
end