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