Why can't I set null and default for migrations via the commandline?

Seems like a very essential thing. Doesn’t feel right having to manually add them in afterwards.

Maybe someone here knows someone on the Rails core team and can forward this to them?

Cheerio!

I think there was an issue or maybe even a PR recently that tried to introduce defaults for the command line generators. Could you try searching for it?

I think it’s this discussion Feature request: Ability to set default values with `rails generate` - #2 by hahmed

1 Like

@SkinnyPete could you consider closing one of the issues?

Happy to carry on the discussion here if you like…