How to create RBAC in existing database with a migration? #2910
Answered
by
tyt2y3
rrodrigues
asked this question in
Q&A
-
|
I'm trying out SeaQL and I'm wondering how to create the rbac tables and configuration on a sea migration. |
Beta Was this translation helpful? Give feedback.
Answered by
tyt2y3
Jan 13, 2026
Replies: 1 comment 1 reply
-
|
Basically I'd do these two things in a migration file:
sea_orm::rbac::schema::create_tables(&ctx.db, Default::default()).await?
An end to end example is also provided in SeaORM Pro Plus |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rrodrigues
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basically I'd do these two things in a migration file:
RbacContexthttps://github.com/SeaQL/sea-orm/blob/master/tests/rbac_tests.rs
An end to end example is also provided in SeaORM Pro Plus