To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / db / migrate / 20091114105931_add_view_issues_permission.rb @ 1298:4f746d8966dd
History | View | Annotate | Download (248 Bytes)
| 1 | 0:513646585e45 | Chris | class AddViewIssuesPermission < ActiveRecord::Migration |
|---|---|---|---|
| 2 | def self.up |
||
| 3 | 1295:622f24f53b42 | Chris | Role.all.each do |r| |
| 4 | 0:513646585e45 | Chris | r.add_permission!(:view_issues)
|
| 5 | end
|
||
| 6 | end
|
||
| 7 | |||
| 8 | def self.down |
||
| 9 | 1295:622f24f53b42 | Chris | Role.all.each do |r| |
| 10 | 0:513646585e45 | Chris | r.remove_permission!(:view_issues)
|
| 11 | end
|
||
| 12 | end
|
||
| 13 | end |