I have migrations, on one I did a default create a record on category and later in the last migration I added a field to category. The problem is that when I create a new app, the record can't work with the missed field (because model has it setup) without run the last migration.
So the question, is the default records creation is the right place in migration ? How I can solve this issue on my migration code ?
Your entire database should be created by migrations, migrations should be incremental and reversable. So if you deploy your code and run all migrations, the database schema is at the version the code expects.
What do you mean with "create a new app", and why is that app not up to date with your migrations?
You are talking about a new application against an already created database?
Have you checked what happens?
My guess would be nothing, if there is no migration config file, but the database has a migration table, the config file will be synced with the database. The database status is leading.
Having said that, multiple applications with migrations on the same database is waiting for a disaster to happen, so if I were you, I'd select one app as the primary app for that database, and make sure all migrations for that database are made in that app.