OpenProject is the leading open source project management software.
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.
 
 
 
 
 
 
openproject/db/migrate/20190507132517_add_board_vi...

17 lines
461 B

require "#{Rails.root}/db/migrate/migration_utils/permission_adder"
class AddBoardViewToRoles < ActiveRecord::Migration[5.2]
def up
::Migration::MigrationUtils::PermissionAdder
.add(:view_work_packages,
:show_board_views)
unless Setting.default_projects_modules.include?('board_view')
Setting.default_projects_modules = Setting.default_projects_modules + ['board_view']
end
end
def down
# Nothing to do
end
end