- Notifications
You must be signed in to change notification settings - Fork102
Possible to disable a rule for a specific statement?#299
-
The default ban on dropping columns is great, but it would be nice in cases where we know the drop is safe to be able to indicate that that particular drop should be ignored. Is this possible? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Right now, we can only ignore migration files or change a rule to be a warning / error / off. Disabling on a per-line basis is a great idea though and a default feature of any linter. Will add an issue for it. 👍🏼 |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Awesome, thank you! It would be great for the "no dropping columns" rule in particular, since we might start out by nulling it out, then update all the clients, then drop the column later when we know it's safe. |
BetaWas this translation helpful?Give feedback.