Skip to content

Commit 61a806e

Browse files
authored
Merge pull request rails#50278 from skipkayhil/hm-fix-protocol-adapters-link
Fix link to config.active_record.protocol_adapters [ci-skip]
2 parents b979afe + 8f1b3ce commit 61a806e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

guides/source/configuring.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2962,10 +2962,11 @@ development:
29622962
29632963
The `config/database.yml` file can contain ERB tags `<%= %>`. Anything in the tags will be evaluated as Ruby code. You can use this to pull out data from an environment variable or to perform calculations to generate the needed connection information.
29642964
2965-
When using a `ENV['DATABASE_URL']` or a `url` key in your `config/database.yml` file, Rails allows mapping the protocol
2966-
in the URL to a database adapter that can be configured from within the application. This allows the adapter to be configured
2967-
without modifying the URL set in the deployment environment. See: [`config.active_record.protocol_adapters`](#config-active_record-protocol-adapters).
2968-
2965+
When using a `ENV['DATABASE_URL']` or a `url` key in your `config/database.yml`
2966+
file, Rails allows mapping the protocol in the URL to a database adapter that
2967+
can be configured from within the application. This allows the adapter to be
2968+
configured without modifying the URL set in the deployment environment. See:
2969+
[`config.active_record.protocol_adapters`](#config-active-record-protocol-adapters).
29692970
29702971
TIP: You don't have to update the database configurations manually. If you look at the options of the application generator, you will see that one of the options is named `--database`. This option allows you to choose an adapter from a list of the most used relational databases. You can even run the generator repeatedly: `cd .. && rails new blog --database=mysql`. When you confirm the overwriting of the `config/database.yml` file, your application will be configured for MySQL instead of SQLite. Detailed examples of the common database connections are below.
29712972

0 commit comments

Comments
 (0)