To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20091114105931_add_view_issues_permission.rb @ 443:350acce374a2

History | View | Annotate | Download (262 Bytes)

1
class AddViewIssuesPermission < ActiveRecord::Migration
2
  def self.up
3
    Role.find(:all).each do |r|
4
      r.add_permission!(:view_issues)
5
    end
6
  end
7

    
8
  def self.down
9
    Role.find(:all).each do |r|
10
      r.remove_permission!(:view_issues)
11
    end
12
  end
13
end