Skip to content

Simplify database migrations? #45

@takluyver

Description

@takluyver

We have a lot of database migration files. I've just added a few more which bring several columns back in a circle to states they were previously in: coordinates.latitude starts off as decimal*, is deleted, re-added as float, replaced with string, and finally converted back to float.

(* SQLite doesn't have a separate decimal type, so it's treated like float anyway.)

I suspect that we can clear up a lot of these migrations. So far, a new database has been created each year, so we're not working with one huge database which must be preserved. It feels messy to have all these redundant steps run, changing things and changing them back, rather than just setting up a database as the application now wants it.

But I don't know enough about rails or databases to remove them and be confident it won't break anything. I'm hoping that someone will.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions