I am using rails 5.1
. We noticed that our views in our test database kept disappearing after running migrations.
Our database is a bit funky: we have views that depend on other views. My assumption is that when a migration is run: in attempt to update the test database, rails is attempting to recreate those views based off of the schema.rb
but is having issues due to the views depending on each other, so rails just stops trying to recreate the views altogether.
Is there a way, perhaps, to have rails not worry about the views at all during migrations? That way rails would stop deleting the views in the test database.
It is odd: the views are just fine in the development database. The migrations only delete the views in the test database.