Join Discord
Powered by
Is there any way to sync RLS policies for local de...
# off-topic
i
irrationaljared
03/03/2022, 2:18 AM
Is there any way to sync RLS policies for local development?
s
silentworks
03/03/2022, 8:34 AM
There is no set way of doing this, but policies are created with SQL. You can use any migration tool and create these by hand so you can sync across multiple environments. Take a look at my project where I make use of a migration tool called ley
https://github.com/silentworks/waiting-list/blob/main/migrations/00004-create_rls_policy_profiles.cjs
i
irrationaljared
03/03/2022, 11:55 AM
Ok, good to know. Thanks for the example!
Previous
Next