Not-Null Shortcut in Rails 8 Migration Generator

from blog Write Software, Well, | ↗ original
Rails 8 lets you mark a database column as not-null by appending an exclamation mark after the column while generating a migration. It's a nice quality of life improvement. This post also contains a few things I learned after reading the pull request.