forked from fixin.me/fixin.me
b6d2c19b0b
Move column defaults from migration strategy to migrations. Compact index creation inside migrations. Disable database schema generation.
29 lines
1007 B
Plaintext
29 lines
1007 B
Plaintext
# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
|
# for a full overview on how database connection configuration can be specified.
|
|
default: &default
|
|
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 3) %>
|
|
# Disable schema dump. It is redundant with regard to migration files and
|
|
# buggy (as of Rails 8.1.4 adds foreign key constraints multiple times after
|
|
# repeated db:schema:load).
|
|
schema_dump: false
|
|
|
|
production:
|
|
<<: *default
|
|
adapter: sqlite3
|
|
database: db/production.sqlite3
|
|
|
|
# Unless you're planning on developing the application, you can skip/remove
|
|
# configurations for development and test databases altogether.
|
|
#development:
|
|
# <<: *default
|
|
# adapter: sqlite3
|
|
# database: db/development.sqlite3
|
|
|
|
# Warning: The database(s) 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
|
|
# adapter: sqlite3
|
|
# database: db/test.sqlite3
|