Skip to content

Instantly share code, notes, and snippets.

View model_has_permissions.sql
CREATE TABLE model_has_permissions
(
permission_id integer NOT NULL,
model_id integer NOT NULL,
model_type character varying(255) NOT NULL,
CONSTRAINT model_has_permissions_pkey PRIMARY KEY (permission_id, model_id, model_type),
CONSTRAINT model_has_permissions_permission_id_foreign FOREIGN KEY (permission_id)
REFERENCES public.permissions (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE
)
View keybase.md

Keybase proof

I hereby claim:

  • I am mlusetti on github.
  • I am mlusetti (https://keybase.io/mlusetti) on keybase.
  • I have a public key whose fingerprint is 1AC4 B7CD A6ED 8A91 04CE 2A95 16D3 FA99 B7E7 5B95

To claim this, I am signing this object: