# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 8defcreate_savepoint(name = current_savepoint_name)
execute("SAVEPOINT #{name}")
end
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 12defexec_rollback_to_savepoint(name = current_savepoint_name)
execute("ROLLBACK TO SAVEPOINT #{name}")
end
release_savepoint(name = current_savepoint_name)
Link