How do I model mitered 2x4's

I found one or two earlier threads on this subject. Here’s one:

One of the ways discussed in another shorter thread is to draw a rotated rectangle corner to corner, pushpull it twice to total width, then draw lines on the meeting edges and pushpull across the corners to trim them to fit.