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.

20091114105931_add_view_issues_permission.rb 262B

12345678910111213
  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. def self.down
  8. Role.find(:all).each do |r|
  9. r.remove_permission!(:view_issues)
  10. end
  11. end
  12. end