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 / .svn / pristine / 2d / 2d1b6f7772fdd853c88983e5f12b084f72e3159d.svn-base @ 1298:4f746d8966dd

History | View | Annotate | Download (314 Bytes)

1 1295:622f24f53b42 Chris
class AddCommitAccessPermission < ActiveRecord::Migration
2
  def self.up
3
    Role.all.select { |r| not r.builtin? }.each do |r|
4
      r.add_permission!(:commit_access)
5
    end
6
  end
7
8
  def self.down
9
    Role.all.select { |r| not r.builtin? }.each do |r|
10
      r.remove_permission!(:commit_access)
11
    end
12
  end
13
end