Migrations jobs are failing due to upstream change
The failures are after the migrations run, on attempting disable writing authorized keys:
Disable authorized keys write in the database
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/peek-pg-1.3.0/lib/peek/views/pg.rb:26:in `exec_prepared': PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "application_settings_pkey" (ActiveRecord::RecordNotUnique)
DETAIL: Key (id)=(1) already exists.
This appears to be related to recent upstream changes, where the cached application settings are using json rather than activeRecord: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5740