summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2012-12-31 08:50:27 +0100
committerspag <spag@golwen.net>2012-12-31 08:50:27 +0100
commitaed84444142604a62e37e57acfaaf957219e2c8d (patch)
treee00b1f5844590393171e0bc839ab516d39f5144d /db
parentc24bd3a8212e85894b2f7c26e190fe5e89fbaaf2 (diff)
parent12c8f4c82770ded6ea6b519e4451ed6757419ddf (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20121230110747_snom_meetingpoint.rb14
-rw-r--r--db/schema.rb2
2 files changed, 15 insertions, 1 deletions
diff --git a/db/migrate/20121230110747_snom_meetingpoint.rb b/db/migrate/20121230110747_snom_meetingpoint.rb
new file mode 100644
index 0000000..04ad450
--- /dev/null
+++ b/db/migrate/20121230110747_snom_meetingpoint.rb
@@ -0,0 +1,14 @@
+class SnomMeetingpoint < ActiveRecord::Migration
+ def up
+ if Manufacturer.where(:ieee_name => 'SNOM Technology AG').any?
+ snom = Manufacturer.where(:ieee_name => 'SNOM Technology AG').first
+ snom.phone_models.create(:name => 'snom MeetingPoint',
+ :product_homepage_url => 'http://www.snom.com/en/products/sip-conference-phone/snom-meetingpoint/',
+ :product_manual_homepage_url => 'http://wiki.snom.com/Snom_MeetingPoint/Documentation')
+ end
+ end
+
+ def down
+ PhoneModels.where(:name => 'snom MeetingPoint').destroy_all
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 804ff5f..12114dc 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20121228101454) do
+ActiveRecord::Schema.define(:version => 20121230110747) do
create_table "access_authorizations", :force => true do |t|
t.string "access_authorizationable_type"