Vigyata.AI
Is this your channel?
GithubGithub01

56 Allow specifying index name when calling ForeignIdColumnDefinition@constrained()

This PR is the migration improvement I highlight: you can now specify the index name when calling `ForeignIdColumnDefinition@constrained()`. For me, that’s important when I want consistent naming or need to avoid collisions in bigger schemas.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Lets you name foreign key indexes while using the modern constrained syntax
  • +Improves consistency and control in database migrations

Cons

  • -Requires passing parameters (like nulls) which can look a bit awkward

Featured in this video