Skip to content

Commit 581b7d6

Browse files
committed
postgres db configuration
1 parent e62fb01 commit 581b7d6

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,3 @@ examples.txt
3636

3737
# Ignore dotenv files
3838
/.env*
39-
40-
# Un-ignore SQLite3 db
41-
!/db/*.sqlite3
42-
!/db/*.sqlite3-journal
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
class ApplicationController < ActionController::Base
2-
skip_forgery_protection
32
end

config/application.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,5 @@ class Application < Rails::Application
1818
#
1919
# config.time_zone = "Central Time (US & Canada)"
2020
# config.eager_load_paths << Rails.root.join("extras")
21-
config.generators do |g|
22-
g.test_framework nil
23-
g.factory_bot false
24-
g.scaffold_stylesheet false
25-
g.stylesheets false
26-
g.javascripts false
27-
g.helper false
28-
end
29-
30-
config.action_controller.default_protect_from_forgery = false
31-
config.generators.system_tests = nil
3221
end
3322
end

config/database.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ default: &default
2222
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
2323

2424
development:
25-
adapter: sqlite3
26-
database: db/development.sqlite3
27-
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
28-
timeout: 5000
25+
<<: *default
26+
database: rails_template_development
2927

3028
# The specified database role being used to connect to postgres.
3129
# To create additional roles in postgres see `$ createuser --help`.
@@ -58,10 +56,8 @@ development:
5856
# re-generated from your development database when you run "rake".
5957
# Do not set this db to the same as development or production.
6058
test:
61-
adapter: sqlite3
62-
database: db/test.sqlite3
63-
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
64-
timeout: 5000
59+
<<: *default
60+
database: rails_template_test
6561

6662
# As with config/credentials.yml, you never want to store sensitive information,
6763
# like your database password, in your source code. If your source code is

0 commit comments

Comments
 (0)