mirror of
https://github.com/edcommonwealth/e2c-api.git
synced 2026-03-09 07:28:44 -07:00
add api implementation
This commit is contained in:
parent
e3dd39b5df
commit
5606f7fa69
114 changed files with 3202 additions and 0 deletions
75
config/database.yml
Normal file
75
config/database.yml
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
# PostgreSQL. Versions 9.3 and up are supported.
|
||||
#
|
||||
# Install the pg driver:
|
||||
# gem install pg
|
||||
# On macOS with Homebrew:
|
||||
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
||||
# On Windows:
|
||||
# gem install pg
|
||||
# Choose the win32 build.
|
||||
# Install PostgreSQL and put its /bin directory on your path.
|
||||
#
|
||||
# Configure Using Gemfile
|
||||
# gem "pg"
|
||||
#
|
||||
default: &default
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
# For details on connection pooling, see Rails configuration guide
|
||||
# https://guides.rubyonrails.org/configuring.html#database-pooling
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
database: myapp_development
|
||||
username: siddharth
|
||||
password: "delphi2002"
|
||||
host: localhost
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
database: myapp_test
|
||||
username: siddharth
|
||||
password: "delphi2002"
|
||||
host: localhost
|
||||
|
||||
|
||||
# As with config/credentials.yml, you never want to store sensitive information,
|
||||
# like your database password, in your source code. If your source code is
|
||||
# ever seen by anyone, they now have access to your database.
|
||||
#
|
||||
# Instead, provide the password or a full connection URL as an environment
|
||||
# variable when you boot the app. For example:
|
||||
#
|
||||
# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
|
||||
#
|
||||
# If the connection URL is provided in the special DATABASE_URL environment
|
||||
# variable, Rails will automatically merge its configuration values on top of
|
||||
# the values provided in this file. Alternatively, you can specify a connection
|
||||
# URL environment variable explicitly:
|
||||
#
|
||||
# production:
|
||||
# url: <%= ENV["MY_APP_DATABASE_URL"] %>
|
||||
#
|
||||
# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
||||
# for a full overview on how database connection configuration can be specified.
|
||||
#
|
||||
production:
|
||||
primary: &primary_production
|
||||
<<: *default
|
||||
database: myapp_production
|
||||
username: myapp
|
||||
password: <%= ENV["MYAPP_DATABASE_PASSWORD"] %>
|
||||
cache:
|
||||
<<: *primary_production
|
||||
database: myapp_production_cache
|
||||
migrations_paths: db/cache_migrate
|
||||
queue:
|
||||
<<: *primary_production
|
||||
database: myapp_production_queue
|
||||
migrations_paths: db/queue_migrate
|
||||
cable:
|
||||
<<: *primary_production
|
||||
database: myapp_production_cable
|
||||
migrations_paths: db/cable_migrate
|
||||
Loading…
Add table
Add a link
Reference in a new issue