diff options
Diffstat (limited to 'db/migrate/20120626094238_add_uuid_to_phone_number.rb')
-rw-r--r-- | db/migrate/20120626094238_add_uuid_to_phone_number.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20120626094238_add_uuid_to_phone_number.rb b/db/migrate/20120626094238_add_uuid_to_phone_number.rb new file mode 100644 index 0000000..095981e --- /dev/null +++ b/db/migrate/20120626094238_add_uuid_to_phone_number.rb @@ -0,0 +1,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 |