<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bijo Mathew Jose</title>
    <description>The latest articles on DEV Community by Bijo Mathew Jose (@bijomathewjose).</description>
    <link>https://dev.to/bijomathewjose</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F781205%2F23c65372-2ce0-48af-9465-c9caea412cd8.jpeg</url>
      <title>DEV Community: Bijo Mathew Jose</title>
      <link>https://dev.to/bijomathewjose</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bijomathewjose"/>
    <language>en</language>
    <item>
      <title>One Database Per Branch — Stop Breaking Your Local DB</title>
      <dc:creator>Bijo Mathew Jose</dc:creator>
      <pubDate>Tue, 17 Feb 2026 15:15:27 +0000</pubDate>
      <link>https://dev.to/bijomathewjose/one-database-per-branch-stop-breaking-your-local-db-3db0</link>
      <guid>https://dev.to/bijomathewjose/one-database-per-branch-stop-breaking-your-local-db-3db0</guid>
      <description>&lt;p&gt;Most local development setups assume one shared database.&lt;/p&gt;

&lt;p&gt;That assumption breaks the moment you start switching Git branches with schema changes.&lt;/p&gt;

&lt;p&gt;Migrations collide. Columns disappear. Half-applied states creep in.&lt;br&gt;
You reset, reseed, wait… and lose momentum.&lt;/p&gt;

&lt;p&gt;AI coding agents made this worse.&lt;/p&gt;

&lt;p&gt;They generate migrations faster than our local workflows were designed to handle. What used to be an occasional annoyance becomes daily friction.&lt;/p&gt;

&lt;p&gt;The fix is surprisingly simple:&lt;/p&gt;

&lt;p&gt;Run one database per branch.&lt;/p&gt;

&lt;p&gt;PostgreSQL can clone a fully seeded database in seconds using CREATE DATABASE ... TEMPLATE. No dumps. No imports. No rebuild cycles.&lt;/p&gt;

&lt;p&gt;I wrote a small script to automate the flow — detect the branch, create (or switch to) its database, and update env files.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/@bijomathewjose/one-database-per-branch-a-simple-script-for-fast-paced-agentic-development-3e38b54451f1" rel="noopener noreferrer"&gt;👉 Full setup + script ↗&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/@bijomathewjose/one-database-per-branch-a-simple-script-for-fast-paced-agentic-development-3e38b54451f1" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F79932r0eezksuzf5h8pr.png" alt="Run one database per branch." width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>backend</category>
      <category>productivity</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
