Skip to content
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

Simplify database migrations? #45

Open
takluyver opened this issue Sep 12, 2018 · 0 comments
Open

Simplify database migrations? #45

takluyver opened this issue Sep 12, 2018 · 0 comments

Comments

@takluyver
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant