Merge pull request #10121 from mfo/US/rails-pg-extra
tech(rails-pg-extras): add rails pg extra
This commit is contained in:
commit
f0053af54f
4 changed files with 20 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -75,6 +75,7 @@ gem 'puma' # Use Puma as the app server
|
|||
gem 'pundit'
|
||||
gem 'rack-attack'
|
||||
gem 'rails-i18n' # Locales par défaut
|
||||
gem 'rails-pg-extras'
|
||||
gem 'rake-progressbar', require: false
|
||||
gem 'redcarpet'
|
||||
gem 'redis'
|
||||
|
|
|
@ -550,6 +550,9 @@ GEM
|
|||
rails-i18n (7.0.8)
|
||||
i18n (>= 0.7, < 2)
|
||||
railties (>= 6.0.0, < 8)
|
||||
rails-pg-extras (5.3.1)
|
||||
rails
|
||||
ruby-pg-extras (= 5.3.1)
|
||||
railties (7.0.8.1)
|
||||
actionpack (= 7.0.8.1)
|
||||
activesupport (= 7.0.8.1)
|
||||
|
@ -640,6 +643,9 @@ GEM
|
|||
rubocop-factory_bot (~> 2.22)
|
||||
ruby-graphviz (1.2.5)
|
||||
rexml
|
||||
ruby-pg-extras (5.3.1)
|
||||
pg
|
||||
terminal-table
|
||||
ruby-progressbar (1.13.0)
|
||||
ruby-vips (2.2.0)
|
||||
ffi (~> 1.12)
|
||||
|
@ -909,6 +915,7 @@ DEPENDENCIES
|
|||
rails-controller-testing
|
||||
rails-erd
|
||||
rails-i18n
|
||||
rails-pg-extras
|
||||
rake-progressbar
|
||||
redcarpet
|
||||
redis
|
||||
|
|
8
db/migrate/20240315065520_add_pg_extra_extensions.rb
Normal file
8
db/migrate/20240315065520_add_pg_extra_extensions.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class AddPgExtraExtensions < ActiveRecord::Migration[7.0]
|
||||
def up
|
||||
RailsPgExtras.add_extensions
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
|
@ -10,11 +10,14 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2024_02_27_163855) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2024_03_15_065520) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_buffercache"
|
||||
enable_extension "pg_stat_statements"
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
enable_extension "postgis"
|
||||
enable_extension "sslinfo"
|
||||
enable_extension "unaccent"
|
||||
|
||||
create_table "action_text_rich_texts", force: :cascade do |t|
|
||||
|
|
Loading…
Reference in a new issue