summaryrefslogtreecommitdiff
path: root/db/migrate/20120822124716_create_acd_agents.rb
blob: bfd1ab6aaa31370ce2383a423dbca23733c3453e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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