Skip to content

Commit

Permalink
Set default database adapter to sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsantos-sfdc committed Mar 27, 2024
1 parent 2e5affe commit 048cf5f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gem 'rails', '~> 7.0.3.1'
gem 'sprockets-rails'

gem 'pg', '~> 1.4.1'
gem 'sqlite3'
gem 'puma', '~> 5.6.4'
gem 'multi_json'
gem 'uglifier'
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.7.3)
mini_portile2 (~> 2.8.0)
strscan (3.0.4)
thor (1.2.1)
timeout (0.3.0)
Expand Down Expand Up @@ -304,6 +306,7 @@ DEPENDENCIES
rspec_junit_formatter
selenium-webdriver
sprockets-rails
sqlite3
tzinfo-data
uglifier
webdrivers
Expand Down
8 changes: 3 additions & 5 deletions config/cable.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
development:
adapter: postgresql
database: webhooks-consumer-demo-development
channel_prefix: webhooks-consumer-demo_development
adapter: async

test:
adapter: async

production:
adapter: postgresql
url: <%= ENV.fetch("DATABASE_URL") {} %>
adapter: async
url: redis://localhost:6379/1
channel_prefix: webhooks-consumer-demo_production
3 changes: 2 additions & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
# gem 'pg'
#
default: &default
adapter: postgresql
adapter: sqlite3
encoding: unicode
database: webhooks-sqlite
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
Expand Down

0 comments on commit 048cf5f

Please sign in to comment.