-
Notifications
You must be signed in to change notification settings - Fork 254
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
Improving dx by separating the cargo loco db from src/ code #1035
Comments
thanks! |
Great!! |
I feel there is a lot of experimentation in this kind of refactor, as there is no one definite good way to solve, so expect experimenting and throwing away experiments while reaching something that works |
Thanks!! Will check it out |
First of all, thanks for making this framework, it's a dream come true for me...
Suggestion:
Suppose we need to make some changes to the database schema in the
./migration/src
migration files. If we forget one of the changes and runcargo loco db reset
, we are forced to fix all the app code in./src/
just to be able to runcargo loco db reset
again.If the app code is not updated to match the current schema, we cannot make further changes to the schema.
It would be really helpful if the
cargo loco db
command—or any alternative approach you choose in the future—could run independently of the application's source code. This would allow schema changes without being blocked by mismatches in the app code.The text was updated successfully, but these errors were encountered: