-
Notifications
You must be signed in to change notification settings - Fork 7
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
Converting existing model to Smart model #10
Comments
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
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?
The text was updated successfully, but these errors were encountered: