Module: SaferRailsConsole::Patches::Sandbox::TransactionReadOnly::PostgreSQLAdapterPatch

Defined in:
lib/safer_rails_console/patches/sandbox/transaction_read_only.rb

Instance Method Summary collapse

Instance Method Details

#begin_db_transactionObject



8
9
10
11
# File 'lib/safer_rails_console/patches/sandbox/transaction_read_only.rb', line 8

def begin_db_transaction
  super
  execute 'SET TRANSACTION READ ONLY'
end