Lightning talk at wroclove.rb 2023 addressing a common pain point: switching between git branches with incompatible schema migrations leaves 'phantom migrations' in the database and causes frustrating exceptions, especially for junior developers. Speaker introduces his Ruby gem that requires no configuration, stores executed migrations in the temp folder, and when switching branches uses this history to roll back migrations that no longer exist on the new branch. Then `rails db:migrate` gets the database back in sync. Limitation: migrations must be reversible.