summaryrefslogtreecommitdiff
path: root/db/migrate/20130813051500_add_polycom_phone.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20130813051500_add_polycom_phone.rb')
-rw-r--r--db/migrate/20130813051500_add_polycom_phone.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20130813051500_add_polycom_phone.rb b/db/migrate/20130813051500_add_polycom_phone.rb
new file mode 100644
index 0000000..a560fee
--- /dev/null
+++ b/db/migrate/20130813051500_add_polycom_phone.rb
@@ -0,0 +1,14 @@
+class AddPolycomPhone < ActiveRecord::Migration
+ def up
+ Manufacturer.create(:name => 'Polycom', :ieee_name => 'Polycom', :homepage_url => 'http://www.polycom.com')
+ polycom = Manufacturer.where(:name => 'Polycom').first
+ if polycom
+ polycom.phone_models.create(:name => 'Polycom SoundPoint IP 670', :product_manual_homepage_url => 'http://www.polycom.com/global/documents/support/user/products/voice/SoundPoint_IP_670_User_Guide_SIP_v3_2.pdf', :product_homepage_url => 'http://www.polycom.com/products-services/voice/desktop-solutions/soundpont-ip-series/soundpoint-ip-670.html')
+ end
+ end
+
+ def down
+ Manufacturer.where(:name => 'Polycom').destroy_all
+ PhoneModel.where(:name => 'Polycom SoundPoint IP 670').destroy_all
+ end
+end