From 2f98241a51723c2f08718fd9ef0b656f710e6113 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Sat, 25 May 2024 14:59:39 +0200 Subject: [PATCH] pghero --- Gemfile | 2 ++ Gemfile.lock | 17 ++++++++++++++++- config/routes.rb | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index c87e2ac17..2eaefa71c 100644 --- a/Gemfile +++ b/Gemfile @@ -59,6 +59,8 @@ gem "omniauth-saml", "~> 2" gem "orthotypo"#, path: '../../noesya/orthotypo' gem "pexels", "~> 0" gem "pg", "~> 1" +gem "pghero" +gem "pg_query" gem "puma" gem "rails", "~> 7.1.0" gem "rails-autocomplete", "~> 2" diff --git a/Gemfile.lock b/Gemfile.lock index 84f4aa380..b7404baf6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,7 +8,7 @@ GIT GIT remote: https://github.com/noesya/good_job.git - revision: 72cf6118e46410afc609fe59417eaea6715ce067 + revision: ef4822fc56f7ccef56109377dd58994bda80cbe6 specs: good_job (3.29.3) activejob (>= 6.0.0) @@ -289,6 +289,15 @@ GEM terminal-table (>= 1.5.1) globalid (1.2.1) activesupport (>= 6.1) + google-protobuf (4.27.0-arm64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.27.0-x86_64-darwin) + bigdecimal + rake (>= 13) + google-protobuf (4.27.0-x86_64-linux) + bigdecimal + rake (>= 13) hal_openscience (0.1.0) json net-http @@ -442,6 +451,10 @@ GEM pexels (0.5.0) requests (~> 1.0.2) pg (1.5.6) + pg_query (5.1.0) + google-protobuf (>= 3.22.3) + pghero (3.5.0) + activerecord (>= 6) popper_js (2.11.8) psych (5.1.2) stringio @@ -698,6 +711,8 @@ DEPENDENCIES orthotypo pexels (~> 0) pg (~> 1) + pg_query + pghero puma rack-mini-profiler (~> 2.0) rails (~> 7.1.0) diff --git a/config/routes.rb b/config/routes.rb index c7def88b8..0e9eb4d29 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,6 +14,7 @@ Rails.application.routes.draw do authenticated :user, -> user { user.server_admin? } do mount GoodJob::Engine => 'background' + mount PgHero::Engine => 'database' end devise_for :users, controllers: { -- GitLab