Refactor Migration timestamp validation
What does this MR do and why?
This MR does things:
- Refactor our existing timestamp validator
- Adds a pre-pushhook to check timestamp to avoid migration in the future.
How to set up and validate locally
Future timestamp
- Change a migration in db/migrateand set it in the future
- run scripts/validate_migration_timestamps
- Should get the following output:
➜  gitlab git:(morefice/refactor/timestamp-validation) ✗ scripts/validate_migration_timestamps
$ git diff --name-only --diff-filter=A master -- db/migrate db/post_migrate
Error: Invalid Timestamp was found in migrations
db/migrate/20251117104131_create_trigger_to_web_hook_logs.rb: has a future timestampEdited  by Max Orefice