Database config for mysql
This commit is contained in:
+12
-10
@@ -1,23 +1,25 @@
|
||||
default: &default
|
||||
adapter: sqlite3
|
||||
adapter: trilogy
|
||||
host: <%= ENV.fetch "DB_HOST", "127.0.0.1" %>
|
||||
port: <%= ENV.fetch "DB_PORT", 33380 %>
|
||||
pool: 50
|
||||
timeout: 5000
|
||||
|
||||
development:
|
||||
primary:
|
||||
<<: *default
|
||||
database: storage/fizzy_development.sqlite3
|
||||
database: fizzy_development
|
||||
cable:
|
||||
<<: *default
|
||||
database: storage/development_cable.sqlite3
|
||||
database: development_cable
|
||||
migrations_paths: db/cable_migrate
|
||||
cache:
|
||||
<<: *default
|
||||
database: storage/development_cache.sqlite3
|
||||
database: development_cache
|
||||
migrations_paths: db/cache_migrate
|
||||
queue:
|
||||
<<: *default
|
||||
database: storage/development_queue.sqlite3
|
||||
database: development_queue
|
||||
migrations_paths: db/queue_migrate
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
@@ -26,23 +28,23 @@ development:
|
||||
test:
|
||||
primary:
|
||||
<<: *default
|
||||
database: storage/fizzy_test.sqlite3
|
||||
database: fizzy_test
|
||||
|
||||
production: &production
|
||||
primary:
|
||||
<<: *default
|
||||
database: storage/fizzy_<%= Rails.env %>.sqlite3
|
||||
database: fizzy_<%= Rails.env %>
|
||||
cable:
|
||||
<<: *default
|
||||
database: storage/production_cable.sqlite3
|
||||
database: <%= Rails.env %>_cable
|
||||
migrations_paths: db/cable_migrate
|
||||
cache:
|
||||
<<: *default
|
||||
database: storage/production_cache.sqlite3
|
||||
database: <%= Rails.env %>_cache
|
||||
migrations_paths: db/cache_migrate
|
||||
queue:
|
||||
<<: *default
|
||||
database: storage/production_queue.sqlite3
|
||||
database: <%= Rails.env %>_queue
|
||||
migrations_paths: db/queue_migrate
|
||||
|
||||
beta: *production
|
||||
|
||||
Reference in New Issue
Block a user