2009-11-14 15:08:47 +03:00
|
|
|
class AddViewIssuesPermission < ActiveRecord::Migration
|
|
|
|
def self.up
|
2012-12-03 00:28:37 +04:00
|
|
|
Role.all.each do |r|
|
2009-11-14 15:08:47 +03:00
|
|
|
r.add_permission!(:view_issues)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2012-12-03 00:28:37 +04:00
|
|
|
Role.all.each do |r|
|
2009-11-14 15:08:47 +03:00
|
|
|
r.remove_permission!(:view_issues)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|