summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-08-13 07:29:52 +0200
committerPeter Kozak <spag@golwen.net>2013-08-13 07:29:52 +0200
commit025179174b79db6956a438950c0087ba1a7f95e5 (patch)
treef0ee21b37df9c89a05d48439e93fb8f34740b945
parentc6650caf5698475cd348b154274397cc7acc51ff (diff)
polycom sound point IP 670 phone added
-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