alphagov/whitehall — pull request #484 by tekin (2013-04-23 15:20:19+00:00)
Title: Limit the roles that can have historical accounts

Currently, creating an historical account for any role other than PM or Chancellor causes admin/historical_accounts#index to 500. This is because front-end routing is limited to those two roles only. This code adds a flag to the Role model that allows us to specify the roles that can have historical accounts. A data migration enables historical accounts for the two roles.