-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
https://github.com/interagent/pliny/blob/master/lib/pliny/tasks/db.rake#L89
When one has a some seed data added via migrations over time, it conflicts poorly with the schema-only dump done here. That's because one is obliged to add them to seeds.rb
or schema.sql
by hand and then make idempotent migrations foreverafter, or risk losing them the next time the schema is compacted (one is free to speculate how many errors are going to creep in from having to update seeds.rb and complicate migrations for any seed rows, I think it's unnecessarily many)
It would be better if a fresh database were prepared, migrated, and then dumped with data. This would also avoid the special code here to keep track of migrations specially.
Metadata
Metadata
Assignees
Labels
No labels