Skip to content

Commit

Permalink
Fix code example for create_unlogged_tables [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Oct 12, 2023
1 parent 837b8d9 commit 430d962
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ def dbconsole(config, options = {})
# 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 in
# the test environment you can add the following line to your test.rb
# file:
# the test environment you can add the following to your test.rb file:
#
# ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables = true
# ActiveSupport.on_load(:active_record_postgresqladapter) do
# self.create_unlogged_tables = true
# end
class_attribute :create_unlogged_tables, default: false

##
Expand Down

0 comments on commit 430d962

Please sign in to comment.