Since Rails 8, this is now possible: just add a bang after the column type.
Example:
bin/rails generate model User email:string! name:string!
This was introduced in PR#52327.