Not sure what question you are asking, but to comment them out just
put # at the front of each line.
Anyway you are writing things the wrong way round, you should add or
amend the tests to check the constraint functions as expected (which
will cause the test to fail as the constraint has not been added yet)
then add the constraint so that the tests work again.
I was suggesting that can we comment them in the generators itself. So that they will be present but commented. Obviously when we want to write tests and use them, we have to go to that file and edit it. We have to do it in any case, whether they are commented or not.
Thanks Yves. Thats what happened when I found this. I has used model generator and updated the migration manually. I will go through the code and open a PR for model generator commenting out fixtures. Is it okey?
Yes, please explore possible solutions. Keep in mind that the workflow for scaffolds and possibly other generators that make use of the fixture data should not change.