Why Does schema.rb (or structure.sql) Have Unexpected Changes?

For years I’ve seen people new to Rails get confused about why their schema.rb or structure.sql files have unexpected changes in them, particularly when the engineer is new to working on a Rails project in a team environment. Let’s put this mystery to rest. In this post, I’ll explain reasons why this happens, what to do when it happens, and recommended practices to avoid commiting (or forgetting to commit) the necessary changes to these files.

Read More

Fixing Sublime Text's SideBarEnhancements Plugin

Recently, a feature I use relatively often in my day to day use of Sublime Text, the “Open in a New Window” command stopped working. It turns out this is not a default feature of Sublime Text, but supplied by the plugin SideBarEnhancements. The issue appears to come from a change in default behavior of the subl command which now will attempt to open a directory within an open project window if one contains that directory. A fix was easy enough, which I PR’d here, but sadly appears to be unmaintained for the past couple years, so I’m not sure when the maintainer will get around to merging it.

Read More

Deploying a Flask 2.x App Using Zappa

I write application code, and my undestanding of cloud infrastructure is only barely better than my understanding of frontend development. While I’m always growing that cloud knowledge, I don’t want to spend a lot of time fiddling with it just to get a weekend personal project deployed. So I was drawn to Zappa.

Read More