mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix typo and clarify documentation
This commit fixes a small typo in documentation of the "UNLOGGED" table option for PostgreSQL databases, and clarifies the documentation slightly.
This commit is contained in:
parent
236bfaf785
commit
b659b71e8e
1 changed files with 4 additions and 3 deletions
|
@ -89,10 +89,11 @@ module ActiveRecord
|
|||
# :singleton-method:
|
||||
# PostgreSQL allows the creation of "unlogged" tables, which do not record
|
||||
# data in the PostgreSQL Write-Ahead Log. This can make the tables faster,
|
||||
# bug significantly increases the risk of data loss if the database
|
||||
# but significantly increases the risk of data loss if the database
|
||||
# crashes. As a result, this should not be used in production
|
||||
# environments. If you would like all created tables to be unlogged you
|
||||
# can add the following line to your test.rb file:
|
||||
# environments. If you would like all created tables to be unlogged in
|
||||
# the test environment you can add the following line to your test.rb
|
||||
# file:
|
||||
#
|
||||
# ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables = true
|
||||
class_attribute :create_unlogged_tables, default: false
|
||||
|
|
Loading…
Reference in a new issue