500 error when a personal access token has been added

when trying to add a personal access token I get a 500 error. As long as the personal_access_tokens table is empty everyting is OK. but when i submit to insert a record in DB i get the error.

I'm on version 10.0.0-rc4

when viewing production.log this is what i get:

'Started GET "/profile/personal_access_tokens" for x.x.x.x.x at 2017-10-05 17:08:55 +0200
Processing by Profiles::PersonalAccessTokensController#index as HTML
Completed 500 Internal Server Error in 69ms (ActiveRecord: 4.6ms)

ActionView::Template::Error (No route matches {:action=>"revoke", :controller=>"profiles/personal_access_tokens", :id=>#<PersonalAccessToken user_id: 1, token: "P1tvYUWtbkhp8A_vG9r8", name: "test", revoked: false, expires_at: nil, created_at: "2017-10-05 15:05:16", updated_at: "2017-10-05 15:05:16", scopes: ["api", "read_user", "read_registry"], impersonation: false>} missing required keys: [:id]):
    34:               %td.token-token-container
    35:                 = text_field_tag 'impersonation-token-token', token.token, readonly: true, class: "form-control"
    36:                 = clipboard_button(text: token.token)
    37:             - path = impersonation ? revoke_admin_user_impersonation_token_path(token.user, token) : revoke_profile_personal_access_token_path(token)
    38:             %td= link_to "Revoke", path, method: :put, class: "btn btn-danger pull-right", data: { confirm: "Are you sure you want to revoke this #{type} Token? This action cannot be undone." }
    39: - else
    40:   .settings-message.text-center
  app/views/shared/_personal_access_tokens_table.html.haml:37:in 'block in _app_views_shared__personal_access_tokens_table_html_haml__3483643056099102492_47175043077980'
  app/views/shared/_personal_access_tokens_table.html.haml:22:in '_app_views_shared__personal_access_tokens_table_html_haml__3483643056099102492_47175043077980'
  app/views/profiles/personal_access_tokens/index.html.haml:32:in '_app_views_profiles_personal_access_tokens_index_html_haml__2070596550575465003_47175057321820'
  lib/gitlab/i18n.rb:46:in 'with_locale'
  lib/gitlab/i18n.rb:52:in 'with_user_locale'
  app/controllers/application_controller.rb:326:in 'set_locale'
  lib/gitlab/middleware/multipart.rb:93:in 'call'
  lib/gitlab/request_profiler/middleware.rb:14:in 'call'
  lib/gitlab/middleware/go.rb:17:in 'call'
  lib/gitlab/etag_caching/middleware.rb:11:in 'call'
  lib/gitlab/request_context.rb:18:in 'call'
  lib/gitlab/metrics/requests_rack_middleware.rb:27:in 'call''
  lib/gitlab/metrics/requests_rack_middleware.rb:27:in 'call'
Edited by Eelco