-
-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split TSDB sample config, rename in compose and push initial download…
…s schema.
- Loading branch information
Showing
4 changed files
with
97 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
default: &default | ||
adapter: postgresql | ||
encoding: utf8 | ||
username: postgres | ||
prepared_statements: false | ||
|
||
timescale: ×cale | ||
adapter: postgresql | ||
encoding: utf8 | ||
username: postgres | ||
password: devpassword | ||
migrations_paths: db/downloads_migrate | ||
port: 5434 | ||
|
||
development: | ||
primary: | ||
<<: *default | ||
database: rubygems_development | ||
host: localhost | ||
password: devpassword | ||
pool: 5 | ||
timeout: 5000 | ||
downloads: | ||
<<: *timescale | ||
database: rubygems_tsdb_development | ||
host: localhost | ||
pool: 5 | ||
timeout: 5000 | ||
|
||
test: | ||
primary: | ||
<<: *default | ||
database: rubygems_test | ||
host: localhost | ||
min_messages: warning | ||
password: testpassword | ||
pool: 5 | ||
timeout: 5000 | ||
downloads: | ||
<<: *timescale | ||
database: rubygems_tsdb_test | ||
host: localhost | ||
min_messages: warning | ||
pool: 5 | ||
timeout: 5000 | ||
|
||
production: | ||
primary: | ||
<<: *default | ||
database: rubygems_production | ||
min_messages: error | ||
pool: 30 | ||
reconnect: true | ||
downloads: | ||
<<: *timescale | ||
database: rubygems_tsdb_production | ||
min_messages: error | ||
pool: 30 | ||
reconnect: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file is auto-generated from the current state of the database. Instead | ||
# of editing this file, please use the migrations feature of Active Record to | ||
# incrementally modify your database, and then regenerate this schema definition. | ||
# | ||
# This file is the source Rails uses to define your schema when running `bin/rails | ||
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to | ||
# be faster and is potentially less error prone than running all of your | ||
# migrations from scratch. Old migrations may fail to apply correctly if those | ||
# migrations use external dependencies or application code. | ||
# | ||
# It's strongly recommended that you check this file into your version control system. | ||
|
||
ActiveRecord::Schema[7.1].define(version: 0) do | ||
create_schema "_timescaledb_cache" | ||
create_schema "_timescaledb_catalog" | ||
create_schema "_timescaledb_config" | ||
create_schema "_timescaledb_debug" | ||
create_schema "_timescaledb_functions" | ||
create_schema "_timescaledb_internal" | ||
create_schema "timescaledb_experimental" | ||
create_schema "timescaledb_information" | ||
create_schema "toolkit_experimental" | ||
|
||
# These are extensions that must be enabled in order to support this database | ||
enable_extension "plpgsql" | ||
enable_extension "timescaledb" | ||
enable_extension "timescaledb_toolkit" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters