How do a make the cubes still as they fall?

I have cubes falling down and I want them to stay still as they fall no rotating and falling of the platform.

Lock rotation on rigidbody component.