diff --git a/.cursor/rules/database.mdc b/.cursor/rules/database.mdc index 514760e6f..61c115b65 100644 --- a/.cursor/rules/database.mdc +++ b/.cursor/rules/database.mdc @@ -19,7 +19,7 @@ alwaysApply: true ## Migrations - After creating a schema, we can create a migration - Use the command `pnpm --filter web supabase:db:diff` for creating migrations from schemas -- After generating a migration, reset the database for applying the changes using the command `pnpm --filter web supabase:db:reset` +- After generating a migration, reset the database for applying the changes using the command `pnpm run supabase:web:reset` ## Security & RLS - Using RLS, we must ensure that only the account owner can access the data. Always write safe RLS policies and ensure that the policies are enforced. diff --git a/.junie/guidelines.md b/.junie/guidelines.md index 1ee3c0840..cf39d0de0 100644 --- a/.junie/guidelines.md +++ b/.junie/guidelines.md @@ -1150,7 +1150,7 @@ export async function myServerAction() { ## Migrations - After creating a schema, we can create a migration - Use the command `pnpm --filter web supabase:db:diff` for creating migrations from schemas -- After generating a migration, reset the database for applying the changes using the command `pnpm --filter web supabase:db:reset` +- After generating a migration, reset the database for applying the changes using the command `pnpm --filter web supabase:reset` ## Security & RLS - Using RLS, we must ensure that only the account owner can access the data. Always write safe RLS policies and ensure that the policies are enforced.