diff options
author | Jacob Evelyn <jevelyn@panoramaed.com> | 2018-11-16 16:16:48 -0500 |
---|---|---|
committer | Jacob Evelyn <jevelyn@panoramaed.com> | 2018-11-16 16:17:42 -0500 |
commit | b659b71e8e0ce75fe6a5ab9b67118b38c17d6131 (patch) | |
tree | 39029425f887374e2a587817bab7154e5a09dbe2 /activerecord/lib/active_record/connection_adapters | |
parent | 236bfaf785af37f2b0dc54e0f9bf863a53c7022d (diff) | |
download | rails-b659b71e8e0ce75fe6a5ab9b67118b38c17d6131.tar.gz rails-b659b71e8e0ce75fe6a5ab9b67118b38c17d6131.tar.bz2 rails-b659b71e8e0ce75fe6a5ab9b67118b38c17d6131.zip |
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.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index f701292be3..d2ed699ee2 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -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 |