Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I have tried a few different formats and looked at documentation of rules as well as asked several models to review and I’m still seeing project rules most of the time being ignored. The most frustrating one is below, and I have it because I have an incomplete source tree for database migrations, so I simple ask cursor to ask for example schema before making assumptions or trying to parse migrations or models and it just doesn’t “listen”.
description: Rules for handling database schema and using correct database facades
globs: [“**/*.php”]
alwaysApply: true
Database Schema Handling Rules
Migration File Limitations
- NEVER search in
database/migrations/
files for table schema information - NEVER rely on migration files to understand current table structure
- NEVER rely on Model files to understand current table structure
- Our migrations do not encompass the complete database history
- Migration files may be incomplete or outdated
Preferred Approach for Schema Queries
When you need table structure, database schema, or column information to implement a change:
- Prompt for Example Data: Instead of searching migrations, ask the user to provide:
- A sample row of data from the table
- Example INSERT statement
- Database dump or export of a few rows
- Screenshot of table structure from database management tool
Response Template
When schema information is requested, respond with:
I cannot rely on migration files for accurate table schema as they don't encompass the complete database history.
Could you please provide:
- A sample row of data from the table
- An example INSERT statement
- Or a database export of a few rows
This will help me understand the current table structure accurately.
Steps to Reproduce
just ask it to change a column or a data mapping
Expected Behavior
i expect it to prompt for schema every time it is writing code to interact with the database.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.4.5 (Universal)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0