mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-05 06:07:20 +00:00
Added a separate table to record background job status for tournaments and fixed migrations/schemas for solid dbs
This commit is contained in:
@@ -23,7 +23,7 @@ module Wrestling
|
||||
|
||||
# Configure schema dumping for multiple databases
|
||||
config.active_record.schema_format = :ruby
|
||||
config.active_record.dump_schemas = :individual
|
||||
config.active_record.dump_schemas = :all
|
||||
|
||||
# Fix deprecation warning for to_time in Rails 8.1
|
||||
config.active_support.to_time_preserves_timezone = :zone
|
||||
|
||||
@@ -23,15 +23,19 @@ development:
|
||||
primary:
|
||||
<<: *default
|
||||
database: db/development.sqlite3
|
||||
migrations_paths: db/migrate
|
||||
queue:
|
||||
<<: *default
|
||||
database: db/development-queue.sqlite3
|
||||
migrations_paths: db/queue/migrate
|
||||
cache:
|
||||
<<: *default
|
||||
database: db/development-cache.sqlite3
|
||||
migrations_paths: db/cache/migrate
|
||||
cable:
|
||||
<<: *default
|
||||
database: db/development-cable.sqlite3
|
||||
migrations_paths: db/cable/migrate
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
@@ -40,15 +44,19 @@ test:
|
||||
primary:
|
||||
<<: *default
|
||||
database: db/test.sqlite3
|
||||
migrations_paths: db/migrate
|
||||
queue:
|
||||
<<: *default
|
||||
database: db/test-queue.sqlite3
|
||||
migrations_paths: db/queue/migrate
|
||||
cache:
|
||||
<<: *default
|
||||
database: db/test-cache.sqlite3
|
||||
migrations_paths: db/cache/migrate
|
||||
cable:
|
||||
<<: *default
|
||||
database: db/test-cable.sqlite3
|
||||
migrations_paths: db/cable/migrate
|
||||
|
||||
production:
|
||||
primary:
|
||||
@@ -59,6 +67,7 @@ production:
|
||||
password: <%= ENV['WRESTLINGDEV_DB_PWD'] %>
|
||||
host: <%= ENV['WRESTLINGDEV_DB_HOST'] %>
|
||||
port: <%= ENV['WRESTLINGDEV_DB_PORT'] %>
|
||||
migrations_paths: db/migrate
|
||||
queue:
|
||||
adapter: mysql2
|
||||
encoding: utf8
|
||||
@@ -67,6 +76,7 @@ production:
|
||||
password: <%= ENV['WRESTLINGDEV_DB_PWD'] %>
|
||||
host: <%= ENV['WRESTLINGDEV_DB_HOST'] %>
|
||||
port: <%= ENV['WRESTLINGDEV_DB_PORT'] %>
|
||||
migrations_paths: db/queue/migrate
|
||||
cache:
|
||||
adapter: mysql2
|
||||
encoding: utf8
|
||||
@@ -75,6 +85,7 @@ production:
|
||||
password: <%= ENV['WRESTLINGDEV_DB_PWD'] %>
|
||||
host: <%= ENV['WRESTLINGDEV_DB_HOST'] %>
|
||||
port: <%= ENV['WRESTLINGDEV_DB_PORT'] %>
|
||||
migrations_paths: db/cache/migrate
|
||||
cable:
|
||||
adapter: mysql2
|
||||
encoding: utf8
|
||||
@@ -83,4 +94,5 @@ production:
|
||||
password: <%= ENV['WRESTLINGDEV_DB_PWD'] %>
|
||||
host: <%= ENV['WRESTLINGDEV_DB_HOST'] %>
|
||||
port: <%= ENV['WRESTLINGDEV_DB_PORT'] %>
|
||||
migrations_paths: db/cable/migrate
|
||||
|
||||
|
||||
@@ -34,24 +34,15 @@ Rails.application.configure do
|
||||
# Don't use connects_to here since it's configured via cache.yml
|
||||
# config.solid_cache.connects_to = { database: { writing: :cache } }
|
||||
|
||||
# Configure path for cache migrations
|
||||
config.paths["db/migrate"] << "db/cache/migrate"
|
||||
|
||||
# Configure Solid Queue as the ActiveJob queue adapter
|
||||
config.active_job.queue_adapter = :solid_queue
|
||||
# Don't use connects_to here since it's configured via queue.yml
|
||||
# config.solid_queue.connects_to = { database: { writing: :queue } }
|
||||
|
||||
# Configure path for queue migrations
|
||||
config.paths["db/migrate"] << "db/queue/migrate"
|
||||
|
||||
# Configure ActionCable to use its own database
|
||||
# Don't use connects_to here since it's configured via cable.yml
|
||||
# config.action_cable.connects_to = { database: { writing: :cable } }
|
||||
|
||||
# Configure path for cable migrations
|
||||
config.paths["db/migrate"] << "db/cable/migrate"
|
||||
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options).
|
||||
config.active_storage.service = :local
|
||||
|
||||
@@ -98,4 +89,10 @@ Rails.application.configure do
|
||||
#Bullet.console = true
|
||||
#Bullet.bullet_logger = true
|
||||
end
|
||||
|
||||
# Raise error on unpermitted parameters, because we want to be sure we're catching them all.
|
||||
config.action_controller.action_on_unpermitted_parameters = :raise
|
||||
|
||||
# Dump the schema after migrations
|
||||
config.active_record.dump_schema_after_migration = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user