Mercurial > hg > soundsoftware-site
view .svn/pristine/2d/2d1b6f7772fdd853c88983e5f12b084f72e3159d.svn-base @ 1539:22d57b0e0a77 live
OK, this script works now, but it should be using the API
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 21 May 2015 17:31:06 +0100 |
parents | 261b3d9a4903 |
children |
line wrap: on
line source
class AddCommitAccessPermission < ActiveRecord::Migration def self.up Role.all.select { |r| not r.builtin? }.each do |r| r.add_permission!(:commit_access) end end def self.down Role.all.select { |r| not r.builtin? }.each do |r| r.remove_permission!(:commit_access) end end end