You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if cargo loco generate model posts does not have fields, a migration file will be generated and written to automatically execute the migration. During development, I usually think of generating the migration file first, then writing the fields one by one, and then manually Execute cargo loco db migrate.
Now if I write less fields in cargo loco generate model posts due to imperfect considerations, I must enter the database to delete the records.
Moreover, a table may have many fields during development. If the cargo loco generate model brings all the fields, it will easily become very long.
Whether to consider cargo loco generate model if it does not automatically execute cargo loco db migrate when it does not carry fields?
The text was updated successfully, but these errors were encountered:
Description
Currently, if cargo loco generate model posts does not have fields, a migration file will be generated and written to automatically execute the migration. During development, I usually think of generating the migration file first, then writing the fields one by one, and then manually Execute cargo loco db migrate.
Now if I write less fields in cargo loco generate model posts due to imperfect considerations, I must enter the database to delete the records.
Moreover, a table may have many fields during development. If the cargo loco generate model brings all the fields, it will easily become very long.
Whether to consider cargo loco generate model if it does not automatically execute cargo loco db migrate when it does not carry fields?
The text was updated successfully, but these errors were encountered: