If you want to include/exclude directories from your search only (not the project), you can add a Custom Scope.
This can be found in Preferences -> Appearance & Behavior -> Scopes
.
For example, a scope that excludes migrations:
!file[*]:*/migrations/*
And the reverse scope that will only include migrations:
file[*]:*/migrations/*