diff --git a/Gemfile b/Gemfile index c87e2ac174c4d87d6304f090c7ca85af0841725f..2eaefa71c7ea5826ebff6a597abf21a87441fead 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 84f4aa3805ca7dd24c2096f85ea110811168ff18..b7404baf6782bd422f6a52db590bb33368d31048 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 c7def88b8082a64b3eeaae5e60803a9e1d4455e8..0e9eb4d29c23e07ebe964b15e242ad4ce68bcefb 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: {