Open deiucanta opened 6 years ago
I consider this can messup things , because is dangerous.
I do prefer convert the project into smart models, delete all migrations file and generate then again with Smart.
@robsontenorio I know you are converting an existing project to use this package. Let us know how it goes.
Meanwhile, a few questions
users
and password_resets
if I'm not mistaken) - do you delete them and recreate them via smart models?There are two cases we need to support
Just finished the project migration. It took about 1h with 25 models.
The process was smooth due to app automatic tests.
@robsontenorio 1h is pretty good!
Let's say you have the user model already. The migration is there and the database is up to date. You want to use Smart model from now on.
Converting the model will generate a new migration as if nothing was in the database. This happens because we didn't track previous states of the user model.
If we add a command that doesn't generate a new migration but updates the
smart.json
file, I think we should be good on this issue.Am I missing anything?