summaryrefslogtreecommitdiff
path: root/db/migrate/20120626094238_add_uuid_to_phone_number.rb
blob: 095981e273f6285003342dfb5e047f04d21288a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddUuidToPhoneNumber < ActiveRecord::Migration
  def change
    add_column :phone_numbers, :uuid, :string rescue puts "column already added"
    add_column :sip_accounts, :uuid, :string 
    add_column :hunt_groups, :uuid, :string

    add_index :phone_numbers, :uuid rescue puts "index already added"
    add_index :sip_accounts, :uuid
    add_index :hunt_groups, :uuid
  end
end