Error executing action `run` on resource 'rails_migration[gitlab-rails]'

I could manage to do the following sql command on the db:
SELECT s.relname AS seq_name,t.relname AS table_name,a.attname AS column_name FROM pg_class s
JOIN pg_depend d ON d.objid = s.oid AND d.classid = ‘pg_class’::regclass AND d.refclassid = ‘pg_class’::regclass
JOIN pg_catalog.pg_class t ON t.oid = d.refobjid
JOIN pg_catalog.pg_namespace n ON n.oid = t.relnamespace
JOIN pg_catalog.pg_attribute a ON a.attrelid = t.oid AND a.attnum = d.refobjsubid
WHERE s.relkind = ‘S’ AND (t.relname = ‘ci_builds’ OR t.relname = ‘p_ci_builds’)

which gives:
seq_name | table_name | comumn_name
--------------------------------------±------------±--------------
geo_repository_created_events_id_seq | p_ci_builds | allow_failure
ci_builds_id_seq | p_ci_builds | id
(2 rows)

Why should this sql give the error?