blob: 1484777e0a250d304d06c48feffd09e5825cd31c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|