Skip to content

Commit d78e664

Browse files
[skip ci] Trilogy description added for rails 7.1 release note
1 parent eab51d8 commit d78e664

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

guides/source/7_1_release_notes.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,25 @@ and reporting of the bulk enqueuing process.
120120

121121
TODO: Add description
122122

123-
### Introduce adapter for Trilogy
123+
### Introduce adapter for `Trilogy`
124+
125+
A [new adapter has been introduced](https://github.com/rails/rails/pull/47880) to facilitate the
126+
seamless integration of `Trilogy`, a MySQL-compatible database client, with Rails applications.
127+
Now, Rails applications have the option to incorporate `Trilogy` functionality by configuring their
128+
`config/database.yml` file. For instance:
129+
130+
```yaml
131+
development:
132+
adapter: trilogy
133+
database: blog_development
134+
pool: 5
135+
```
136+
137+
Alternatively, integration can be achieved using the `DATABASE_URL` environment variable:
124138

125-
TODO: Add description https://github.com/rails/rails/pull/47880
139+
```ruby
140+
ENV['DATABASE_URL'] # => "trilogy://localhost/blog_development?pool=5"
141+
```
126142

127143
### Add `ActiveSupport::MessagePack`
128144

0 commit comments

Comments
 (0)