You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

096_add_commit_access_permission.rb 319B

12345678910111213
  1. class AddCommitAccessPermission < ActiveRecord::Migration[4.2]
  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. def self.down
  8. Role.all.select { |r| not r.builtin? }.each do |r|
  9. r.remove_permission!(:commit_access)
  10. end
  11. end
  12. end