> When taking this approach, how do you ensure the accumulated schema
migrations end up with a database that matches the one that create_all
gives you?
Sadly, I don't. I've actually been working on a test to ensure every table
and column in the model exists in the database!
> Creating a
On Fri, Sep 2, 2022, 08:47 Chris Withers wrote:
> On 01/09/2022 20:00, Jonathan Vanasco wrote:
> >
> > > Create an empty schema from the models using create_all?
> >
> > This is what I usually do with smaller projects.
>
> When taking this approach, how do you ensure the accumulated schema
>
On 01/09/2022 20:00, Jonathan Vanasco wrote:
> Create an empty schema from the models using create_all?
This is what I usually do with smaller projects.
When taking this approach, how do you ensure the accumulated schema
migrations end up with a database that matches the one that
> Create an empty schema from the models using create_all?
This is what I usually do with smaller projects. On some large legacy
projects, I use a database dump that is loaded into Postgres - as they
often rely on a lot of records that need to be in the database and
generating them via