mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Format a comment to not show up as code [ci skip]
This commit is contained in:
parent
20b94af9eb
commit
b2aa46ff40
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ module ActiveRecord
|
|||
# a role. If you would like to use a different role you can pass a hash to database:
|
||||
#
|
||||
# ActiveRecord::Base.connected_to(database: { readonly_slow: :animals_slow_replica }) do
|
||||
# Dog.run_a_long_query # runs a long query while connected to the +animals_slow_replica+
|
||||
# using the readonly_slow role.
|
||||
# # runs a long query while connected to the +animals_slow_replica+ using the readonly_slow role.
|
||||
# Dog.run_a_long_query
|
||||
# end
|
||||
#
|
||||
# When using the database key a new connection will be established every time.
|
||||
|
|
Loading…
Reference in a new issue