😅
3 months ago
1
0
0
0
😅
@byroot.bsky.social @bihi.bsky.social Very happy to deprecate my library thanks to all your work on JSON 🎉 github.com/jhawthorn/ra...
bin/rails g Model Foo bar:string! (with an exclamation mark at the end of string) creates a migration where the bar column is set as null false.
TIL In #Rails generators you can add a bang(!) to the end of a column's type to set the column as `null: false` in the migration.