Can anyone please help with generating Rails models with mandatory fields/columns (i.e. NOT NULL)? For example,
$rails generate model Role name:string ??>
You can't do that in a generator command. It's quite simple to add null: false to your migration file though.
null: false