From 135c6891dd96a522eb3020c98e42b79e8a9177b2 Mon Sep 17 00:00:00 2001 From: Christian Lautier <15379878+maatinito@users.noreply.github.com> Date: Thu, 21 Sep 2023 21:04:38 -1000 Subject: [PATCH] Use postgis postgres docker image for tests --- .github/workflows/ci.yml | 2 +- config/environment.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 038828a0c0e..c5b1f782fa5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest services: postgres: - image: postgres:14 + image: postgis/postgis:14-3.3 env: POSTGRES_USER: tps_test POSTGRES_DB: tps_test diff --git a/config/environment.rb b/config/environment.rb index cac53157752..f772ba1c00f 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,5 +1,7 @@ # Load the Rails application. require_relative "application" +ActiveRecord::SchemaDumper.ignore_tables = ["spatial_ref_sys"] + # Initialize the Rails application. Rails.application.initialize!