Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ gem "devise", "~> 4.9", ">= 4.9.2"
gem "devise-i18n"
gem "importmap-rails"
gem "jbuilder"
gem "pg", "~> 1.1"
gem "puma", "~> 5.0"
gem "rails", "~> 7.0.7", ">= 7.0.7.2"
gem "redis", "~> 4.0"
gem "sprockets-rails"
gem "sqlite3", "~> 1.4"
gem "stimulus-rails"
gem "turbo-rails"
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ GEM
parser (3.2.2.3)
ast (~> 2.4.1)
racc
pg (1.5.4)
psych (5.1.0)
stringio
public_suffix (5.0.3)
Expand Down Expand Up @@ -259,7 +260,6 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.6.4-x86_64-linux)
stimulus-rails (1.2.2)
railties (>= 6.0.0)
stringio (3.0.8)
Expand Down Expand Up @@ -303,6 +303,7 @@ DEPENDENCIES
devise-i18n
importmap-rails
jbuilder
pg (~> 1.1)
puma (~> 5.0)
rails (~> 7.0.7, >= 7.0.7.2)
redis (~> 4.0)
Expand All @@ -313,7 +314,6 @@ DEPENDENCIES
rubocop-rspec (~> 2.24)
selenium-webdriver
sprockets-rails
sqlite3 (~> 1.4)
stimulus-rails
turbo-rails
tzinfo-data
Expand Down
2 changes: 1 addition & 1 deletion config/credentials.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
HPAwZXT39f4XrnRalzTfdjlQo+OLwHr4/7QbKF8R0vqJz0I4nwTivuPRNMGf9BS7nK8bL0iefNMBY1QZrJSjzCSwm/fdszvlvcvMMbA/zGF3s7f3Iw8y+fwHo90qVFArzBnE/CUHU8P8XK4RNNEcOzyneKIgrvXbIC+b21jKwuOKYe9G08ty5tL/gM1R4O3b5jYPu++JiZexQuCx+HwrupzjE+KnzF8AeohgBQ93+ivVu96wI721+irQpnQZO0kQjao2MrSoFWRDSXIpeq0hkJWQH31/cu7wdCVI7BS9opSeQxVxYD94bV/k0RmL/0scI5g1zlpU5Kkfd/P2Kyur09UbqzyEKMErPO+0BERLYopEn0f00KzvRF8lqCtNCu5YTng38HYHhtzl74k5ikTKsMaEb5lAVTHB7a9d--WOnNmGfC0deK80mj--KHXTFZkunk1OQJ3DnDTK4g==
7zkgc6PhroDULvqDC3/yzoh/8/I52AfKfg/fjfK5H5vEJBNGfCdrFq6v9GVe7EWiS4QrsXzwTa59Axd2IaWRUsjqW4wJ+Zph3C2DsJpbT6Z83Fb5d81q67qebFUzLpb++a2O7NtqpfPUQ8wGOBmHD1tEpkqcDp+umI22RoPrBU6HQbdv9rQO9C3gt79f8AWqK+Y/7KFetCGRLylMhGPVIe8o+EOM8m19m2oLc/ckbZwcTqHRDBoivUjOir+92l+6zmw6gGLi2sxpCNu9yQxotYQfLlqQkq/4ZNUejlGCb7Kh8CCGiQivIWzVqo6MLQhfNmvp8nsgtu1xaQVl60ai9Jixcia48WTijPU0YAGR5umh4xo3kEpnET2VIxMDEdxcFVtfh46B9/Vp3j9lQMfMfXmRnz6pOQ/KQz8O0WSXODg0hLzLEUqgSroUu7DtKmiku1pCRAKJqA==--bxJSeX/lO/xbvbr6--qffAjFt7o/6VD9DaNcIVhA==
83 changes: 73 additions & 10 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,88 @@
# SQLite. Versions 3.8.0 and up are supported.
# gem install sqlite3
# PostgreSQL. Versions 9.3 and up are supported.
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem "sqlite3"
# Install the pg driver:
# gem install pg
# On macOS with Homebrew:
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
# On macOS with MacPorts:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem "pg"
#
default: &default
adapter: sqlite3
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
port: 5432
host: localhost
user: postgres
password: postgres

development:
<<: *default
database: db/development.sqlite3
database: ruby_work_development

# The specified database role being used to connect to postgres.
# To create additional roles in postgres see `$ createuser --help`.
# When left blank, postgres will use the default role. This is
# the same name as the operating system user running Rails.
#username: ruby_work

# The password associated with the postgres role (username).
#password:

# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
#host: localhost

# The TCP port the server listens on. Defaults to 5432.
# If your server runs on a different port number, change accordingly.
#port: 5432

# Schema search path. The server defaults to $user,public
#schema_search_path: myapp,sharedapp,public

# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
# Defaults to warning.
#min_messages: notice

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: db/test.sqlite3
database: ruby_work_test

# As with config/credentials.yml, you never want to store sensitive information,
# like your database password, in your source code. If your source code is
# ever seen by anyone, they now have access to your database.
#
# Instead, provide the password or a full connection URL as an environment
# variable when you boot the app. For example:
#
# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
#
# If the connection URL is provided in the special DATABASE_URL environment
# variable, Rails will automatically merge its configuration values on top of
# the values provided in this file. Alternatively, you can specify a connection
# URL environment variable explicitly:
#
# production:
# url: <%= ENV["MY_APP_DATABASE_URL"] %>
#
# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
# for a full overview on how database connection configuration can be specified.
#
production:
<<: *default
database: db/production.sqlite3
database: ruby_work_production
username: ruby_work
password: <%= ENV["RUBY_WORK_DATABASE_PASSWORD"] %>
3 changes: 3 additions & 0 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.