Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UUIDs as primary keys instead of sequential integers #359

Merged
merged 3 commits into from
Aug 1, 2023

Conversation

gcauchon
Copy link
Contributor

@gcauchon gcauchon commented Jul 31, 2023

📖 Description

⚠️ I am breaking up #249 in smaller chunks to simplify open discussion on the many aspect where our boilerplate project diverted from phx.new to realign our use of Phoenix, Absinthe and many libraries with the ongoing effort of the Elixir community.

We are always using UUID as primary keys, but since the boilerplate does not inclure any Ecto schema, the groundwork was never migrated back to the template project.

📝 Notes

  • use ElixirBoilerplate.Schema instead of use Ecto.Schema in every schema module.
  • The new settings on ElixirBoilerplate.Repo sets the key type for migrations.

🦀 Dispatch

  • #dispatch/elixir

@mirego-builds
Copy link

🦀 Requesting reviewers for this pull request:

@gcauchon gcauchon requested a review from simonprev July 31, 2023 13:15
config/config.exs Outdated Show resolved Hide resolved
@gcauchon gcauchon requested a review from garno July 31, 2023 20:31
@gcauchon gcauchon merged commit 5683b49 into mirego:main Aug 1, 2023
@gcauchon gcauchon deleted the feature/schema-with-binary-id branch August 1, 2023 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants