Last active
April 5, 2017 00:55
-
-
Save fffx/188101ac16f853d4ac7c6b6d3f940687 to your computer and use it in GitHub Desktop.
cancan permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+------------+ | |
|permissions | | |
+-----+------+ | |
| | |
has_many through +----+ permission_id | |
| +--------------------+ | |
+-----^+-> | role_permissions | | |
| +--------------------+ | |
has_many through +----+ role_id | |
+ | |
+-----------+ | |
| roles | | |
+----+------+ | |
^ | |
| | |
| | |
| | |
has_many | |
| | |
| | |
+----+---+ | |
| users | | |
+--------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment