blob: 84f021d04e88754ec8f5f426065e98e39465771f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class AddPresencePermissionToGroups < 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
|