Mercurial > hg > soundsoftware-site
view db/migrate/096_add_commit_access_permission.rb @ 1581:ae8043b014c7 dockerise
Updates, fixes, and tidying to scripted deployment stuff
author | Chris Cannam |
---|---|
date | Tue, 15 Aug 2017 13:33:56 +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