Incorporate the alter_time patch into the schema by default, and test that conditions are met.
Instead of having to remember to update a non-obvious patch when adding a migration, developers must remember not to include changes to the affected schema lines, and will be assisted by a spec that verifies the proper conditions are maintained.
BONUS: test for the conditions without analyzing the text content of the schema file, so that whenever velum moves to Rails 5, we can incorporate the proper upstream implementation[1]
Incorporate the
alter_time
patch into the schema by default, and test that conditions are met.Instead of having to remember to update a non-obvious patch when adding a migration, developers must remember not to include changes to the affected schema lines, and will be assisted by a spec that verifies the proper conditions are maintained.
BONUS: test for the conditions without analyzing the text content of the schema file, so that whenever velum moves to Rails 5, we can incorporate the proper upstream implementation[1]
[1] https://stackoverflow.com/a/40647191