Databases migration failed from CE to EE edition: Table geo_nodes missing

Hello,

So I am upgrading my gitlab community edition to gitlab enterprise edition (12-0-stable). However, I have an issue with the database migrations.

I got the following error:

# sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "geo_nodes" does not exist
LINE 8:                WHERE a.attrelid = '"geo_nodes"'::regclass
                                          ^
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
                     c.collname, col_description(a.attrelid, a.attnum) AS comment
                FROM pg_attribute a
                LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
                LEFT JOIN pg_type t ON a.atttypid = t.oid
                LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
               WHERE a.attrelid = '"geo_nodes"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `async_exec'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `block (2 levels) in query'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies/interlock.rb:46:in `block in permit_concurrent_loads'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/concurrency/share_lock.rb:185:in `yield_shares'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies/interlock.rb:45:in `permit_concurrent_loads'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:60:in `block in query'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:613:in `block (2 levels) in log'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:612:in `block in log'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:604:in `log'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:59:in `query'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql_adapter.rb:773:in `column_definitions'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:167:in `columns'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/schema_cache.rb:67:in `columns'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/schema_cache.rb:73:in `columns_hash'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:471:in `load_schema!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/attributes.rb:233:in `load_schema!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/attribute_decorators.rb:50:in `load_schema!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:464:in `block in load_schema'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:461:in `load_schema'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:353:in `attribute_types'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/attribute_methods.rb:179:in `has_attribute?'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:1053:in `block in arel_columns'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:1052:in `map'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:1052:in `arel_columns'
/home/git/gitlab/config/initializers/active_record_build_select.rb:18:in `build_select'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:953:in `build_arel'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:918:in `arel'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:94:in `bound_attributes'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/finder_methods.rb:319:in `exists?'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/querying.rb:3:in `exists?'
/home/git/gitlab/ee/lib/gitlab/geo.rb:36:in `block in enabled?'
/home/git/gitlab/ee/lib/gitlab/geo.rb:93:in `cache_value'
/home/git/gitlab/ee/lib/gitlab/geo.rb:36:in `enabled?'
/home/git/gitlab/ee/lib/gitlab/geo.rb:44:in `secondary?'
/home/git/gitlab/ee/lib/ee/gitlab/database.rb:13:in `read_only?'
/home/git/gitlab/config/initializers/fill_shards.rb:3:in `<top (required)>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:286:in `load'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:286:in `block in load'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:286:in `load'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:655:in `block in load_config_initializer'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/notifications.rb:168:in `instrument'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:654:in `load_config_initializer'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:611:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:611:in `block in <class:Engine>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `instance_exec'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `run'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:59:in `block in run_initializers'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:48:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:48:in `tsort_each_child'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:415:in `call'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `each'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `call'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:58:in `run_initializers'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:353:in `initialize!'
/home/git/gitlab/config/environment.rb:6:in `<top (required)>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:329:in `require_environment!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `block in execute'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `execute'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:238:in `block in invoke_prerequisites'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:236:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:236:in `invoke_prerequisites'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:183:in `invoke'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:160:in `invoke_task'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block in top_level'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:125:in `run_with_threads'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:110:in `top_level'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:83:in `block in run'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:80:in `run'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/home/git/gitlab/vendor/ruby/2.6.0/bin/rake:23:in `load'
/home/git/gitlab/vendor/ruby/2.6.0/bin/rake:23:in `<top (required)>'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/home/git/.rbenv/versions/2.6.6/bin/bundle:23:in `load'
/home/git/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'

Caused by:
PG::UndefinedTable: ERROR:  relation "geo_nodes" does not exist
LINE 8:                WHERE a.attrelid = '"geo_nodes"'::regclass
                                          ^
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `async_exec'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `block (2 levels) in query'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies/interlock.rb:46:in `block in permit_concurrent_loads'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/concurrency/share_lock.rb:185:in `yield_shares'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies/interlock.rb:45:in `permit_concurrent_loads'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:60:in `block in query'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:613:in `block (2 levels) in log'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:612:in `block in log'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:604:in `log'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:59:in `query'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql_adapter.rb:773:in `column_definitions'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:167:in `columns'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/schema_cache.rb:67:in `columns'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/schema_cache.rb:73:in `columns_hash'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:471:in `load_schema!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/attributes.rb:233:in `load_schema!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/attribute_decorators.rb:50:in `load_schema!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:464:in `block in load_schema'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:461:in `load_schema'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/model_schema.rb:353:in `attribute_types'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/attribute_methods.rb:179:in `has_attribute?'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:1053:in `block in arel_columns'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:1052:in `map'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:1052:in `arel_columns'
/home/git/gitlab/config/initializers/active_record_build_select.rb:18:in `build_select'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:953:in `build_arel'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:918:in `arel'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/query_methods.rb:94:in `bound_attributes'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/relation/finder_methods.rb:319:in `exists?'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activerecord-5.1.7/lib/active_record/querying.rb:3:in `exists?'
/home/git/gitlab/ee/lib/gitlab/geo.rb:36:in `block in enabled?'
/home/git/gitlab/ee/lib/gitlab/geo.rb:93:in `cache_value'
/home/git/gitlab/ee/lib/gitlab/geo.rb:36:in `enabled?'
/home/git/gitlab/ee/lib/gitlab/geo.rb:44:in `secondary?'
/home/git/gitlab/ee/lib/ee/gitlab/database.rb:13:in `read_only?'
/home/git/gitlab/config/initializers/fill_shards.rb:3:in `<top (required)>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:286:in `load'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:286:in `block in load'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:286:in `load'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:655:in `block in load_config_initializer'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/notifications.rb:168:in `instrument'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:654:in `load_config_initializer'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:611:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/engine.rb:611:in `block in <class:Engine>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `instance_exec'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `run'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:59:in `block in run_initializers'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:48:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:48:in `tsort_each_child'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:415:in `call'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `each'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `call'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:58:in `run_initializers'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:353:in `initialize!'
/home/git/gitlab/config/environment.rb:6:in `<top (required)>'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/git/gitlab/vendor/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:329:in `require_environment!'
/home/git/gitlab/vendor/ruby/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `block in execute'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `execute'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:238:in `block in invoke_prerequisites'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:236:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:236:in `invoke_prerequisites'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/home/git/.rbenv/versions/2.6.6/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/task.rb:183:in `invoke'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:160:in `invoke_task'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `each'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block in top_level'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:125:in `run_with_threads'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:110:in `top_level'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:83:in `block in run'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:80:in `run'
/home/git/gitlab/vendor/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/home/git/gitlab/vendor/ruby/2.6.0/bin/rake:23:in `load'
/home/git/gitlab/vendor/ruby/2.6.0/bin/rake:23:in `<top (required)>'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/home/git/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/home/git/.rbenv/versions/2.6.6/bin/bundle:23:in `load'
/home/git/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => environment

So it seems a table named geo_nodes does not exist.

Should I (re)load any SQL schema ?