Sha256: aa562c69fbb39b2c97568c8e4e2f34dbbbacff642bceb2414afed903b1897f74

Contents?: true

Size: 1.87 KB

Versions: 18

Compression:

Stored size: 1.87 KB

Contents

# MySQL. Versions 5.5.8 and up are supported.
#
# Install the MySQL driver
#   gem install trilogy
#
# Ensure the MySQL gem is defined in your Gemfile
#   gem "trilogy"
#
# And be sure to use new-style password hashing:
#   https://dev.mysql.com/doc/refman/5.7/en/password-hashing.html
#
default: &default
  adapter: trilogy
  encoding: utf8mb4
  pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  username: root
  password:
<% if mysql_socket -%>
  socket: <%= mysql_socket %>
<% else -%>
  host: localhost
<% end -%>

development:
  <<: *default
  database: <%= app_name %>_development

# Warning: The database 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
  database: <%= app_name %>_test

# 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="trilogy://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:
  <<: *default
  database: <%= app_name %>_production
  username: <%= app_name %>
  password: <%%= ENV["<%= app_name.upcase %>_DATABASE_PASSWORD"] %>

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.5.1 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.5 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.4.2 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.4.1 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.4 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.3.4 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.3.2 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.3.1 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.3 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.2 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.1 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.0 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.0.rc2 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.0.rc1 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
railties-7.1.0.beta1 lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt