If you have this:
def run_psql_command(command)
system(command)
raise "Command failed: #{command}" unless $?.success?
end
You can't run multiple psql
commands with run_psql_command
and have it all in a single transaction, because each execution will have it's own transaction.
0 Comment