@@ -1,14 +1,14 | |||
|
1 |
class Add |
|
|
1 | class AddCommitAccessPermission < ActiveRecord::Migration | |
|
2 | 2 | |
|
3 | 3 | def self.up |
|
4 | 4 | Role.find(:all).select { |r| not r.builtin? }.each do |r| |
|
5 | 5 | r.add_permission!(:commit_access) |
|
6 | 6 | end |
|
7 | 7 | end |
|
8 | 8 | |
|
9 | 9 | def self.down |
|
10 | 10 | Role.find(:all).select { |r| not r.builtin? }.each do |r| |
|
11 | 11 | r.remove_permission!(:commit_access) |
|
12 | 12 | end |
|
13 | 13 | end |
|
14 | 14 | end |
General Comments 0
You need to be logged in to leave comments.
Login now