-
-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced top-level .gitignore with the one in the app/. #131
Conversation
@Martinsos I assumed it was better not to include the migrations because the user should be a getting a clean template. What would be the advantage of including migrations? Better DX for contributors? Wouldn't it still work without migrations? Then they would just create their own initial migration the first time they run |
@vincanger you are ok with the changes I made in this PR though, right? We do not want them to have migrations gitignored. What we are discussing now is, do we put |
@Martinsos yes, I agree What we could do is create a GH action that removes the migrations dir when pushing / merging to Edit: Actually, that sounds like it could get problematic. Maybe it's best we just remove migrations before pushing? |
@vincanger yeah that does sounds tricky you are right! I don't see a super neat solution. We could do stuff like define pre-commit hoooks that ensure migrations dir doesn't exist and what not, but I am not sure we should be spending time on that now. The easiest maybe is just that we agree we will not be committing migrations dir. At some point we will make a mistake and we will submit it, but no big deal. Once we get frustrated with this enough we can figure out how to improve the process. |
Ok, so I created a PR here that adds a warning to CONTRIBUTING.md: #138 . Another idea: if we do that thing with having two dirs, one |
@vincanger anything else you need from my side here? I believe I covered all that you asked. |
wasp new
by default.migrations
are no longer ignored. Which is good because they shouldn't be! They should be part of the project. That said, it is interesting that open-saas doesn't come with any migrations already. Are we ok with that? I thought that some time ago we had one big initial migration, but we dropped that? How should we approach this now that I updated these gitignores, is this problematic now, what do we want to do?