We have lots of database migration files - should we keep them?
问题 We have around 100 database migration files. Many of them make schema changes which are irreversible. There are also later migrations which change or remove tables which were created in earlier migrations. We are creating new databases straight from the schema.rb file, so we were wondering if there is any reason to keep the full set of migrations? We would create a new migration which is based on our existing schema.rb. 回答1: Yes, what you're proposing is considered a best practice. I've done