blob: 277eaee20d1b7825592d95e6b6217468fdd4e846 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class AddInitialGroups < ActiveRecord::Migration
def up
user_sip_accounts = Group.where(:name => 'user_sip_accounts').first
if user_sip_accounts
user_sip_accounts.group_permissions.create(:permission => 'presence', :target_group_id => user_sip_accounts.id)
end
end
def down
end
end
|