File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
activerecord/lib/active_record/connection_adapters Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,11 @@ def dbconsole(config, options = {})
108
108
# but significantly increases the risk of data loss if the database
109
109
# crashes. As a result, this should not be used in production
110
110
# environments. If you would like all created tables to be unlogged in
111
- # the test environment you can add the following line to your test.rb
112
- # file:
111
+ # the test environment you can add the following to your test.rb file:
113
112
#
114
- # ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables = true
113
+ # ActiveSupport.on_load(:active_record_postgresqladapter) do
114
+ # self.create_unlogged_tables = true
115
+ # end
115
116
class_attribute :create_unlogged_tables , default : false
116
117
117
118
##
You can’t perform that action at this time.
0 commit comments