`build_association` produces DB-queries

Let User.has_one :profile. I’ve always thought that @user.build_profile is a cheap thing to do - it’s just creating a new object without persisting it. But, in fact, it does 2 queries to the DB: BEGIN and COMMIT.

I’ve never seen this before. Is there anything interesting about your profile class ?