Skip to content

Commit db5d413

Browse files
committed
add SQL log
1 parent e7ee76f commit db5d413

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ registration.update!(
120120
email_confirmation: "bar@example.com",
121121
terms_of_service: true,
122122
)
123+
# `#update!` SQL log
124+
# BEGIN immediate TRANSACTION
125+
# INSERT INTO "accounts" ("created_at", "email", "name", "updated_at") VALUES (...
126+
# INSERT INTO "profiles" ("account_id", "age", "created_at", "firstname", "lastname", ...
127+
# COMMIT TRANSACTION
128+
123129

124130
# === Or, in a Rails controller with strong parameters ===
125131
class UserRegistrationsController < ApplicationController

0 commit comments

Comments
 (0)