DEV Community

Henry Godnick
Henry Godnick

Posted on

A database-migration iPhone app blocker rule to stop doomscrolling

A tiny focus leak for developers: the database migration wait.

You run the migration, watch the terminal for a few seconds, and then your hand opens TikTok, Instagram, YouTube Shorts, Reddit, or some other feed while you are "just waiting."

The problem is not that the wait is long. The problem is that the wait is ambiguous.

Your brain sees a 20-second gap and treats it like free time. Then the migration finishes, but you are still in a feed loop.

A better rule is simple:

If a task is short enough that I should stay nearby, my phone should not be allowed to turn that gap into a scroll session.

That is where an iPhone app blocker is more useful than another Screen Time report.

Screen Time tells you afterward that you lost time. A social media blocker should stop the automatic open before the feed loads.

For database migrations, I would set one of these rules:

  1. Block the main feed apps during work hours
  2. Add an opening limit for the apps you check without thinking
  3. Schedule stricter blocks during deploy or release windows
  4. Block the backup websites too, not just the apps

The key is to block the escape path, not the whole phone.

You still need messages, banking apps, docs, auth apps, and maybe your browser. You probably do not need TikTok, Reels, Shorts, or Reddit during a migration window.

That is the enforcement mindset: distraction is not a motivation problem, it is an access problem.

If you rely on willpower, every small wait becomes a negotiation.

If you set a rule before the wait starts, there is nothing to negotiate.

I have been working on Monk Mode for this exact pattern: app and website blocking, opening limits, schedules, strict focus boundaries, focus sessions, and recovery analytics for the moments where "one quick check" turns into twenty minutes.

If Screen Time has been too passive for you, try setting one specific blocker rule around your next migration, deploy, test run, or build wait.

Monk Mode: https://www.monk-mode.lifestyle/index.html#pricing

Start with one app and one boundary. That is usually enough to find out whether the problem was motivation or enforcement.

Top comments (0)