Skip to content

Conversation

@zachdaniel
Copy link
Contributor

Contributor checklist

  • Bug fixes include regression tests
  • Features include unit/acceptance tests


def up() do
create table(:multitenant_orgs, primary_key: false) do
add(:id, :binary_id, null: true, default: fragment("uuid_generate_v4()"), primary_key: true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null: false ?
I noticed that IDs allow nil in many places, is that intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really its just up to the resource wether or not its possible to be null, but it wouldn't really make sense in most contexts

@kingshalaby1
Copy link

this PR solves bug #26 , we can close it after merge

@zachdaniel zachdaniel merged commit 03510da into master Oct 29, 2020
@zachdaniel zachdaniel deleted the multitenancy branch October 29, 2020 02:26
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