---
title: "Andy Koch (@Somazx) | Hashnode"
description: "I write all my own bugs. Read the latest articles by Andy Koch on Hashnode."
url: "https://hashnode.com/@Somazx"
---

@Somazx

# Andy Koch

@Somazx · BC, Canada · Joined March 2023

I write all my own bugs.

[Website](https://somazx.github.io/)

### [Dead simple multi-tenancy in Rails.](https://andykoch.hashnode.dev/dead-simple-multi-tenancy-in-rails?utm_source=hashnode&utm_medium=feed)

I think Kolide has nailed it with this post. Effectively they define a concern which associates a model to an account (organization, company, or whatever model defines your tenant) and sets the default scope of the model to find the current user's ac...

1 min read · [andykoch.hashnode.dev](https://andykoch.hashnode.dev/dead-simple-multi-tenancy-in-rails?utm_source=hashnode&utm_medium=feed)

[Nov 2, 2023](https://hashnode.com/posts/dead-simple-multi-tenancy-in-rails/6543c95b04d7afff5fe5ac3b)

### [I know this way to its very end.](https://andykoch.hashnode.dev/i-know-this-way-to-its-very-end?utm_source=hashnode&utm_medium=feed)

I feel like this should be a programming meme: this mathematician and father (Gyula Farkas), his letter to his son (Janos), warning him off trying to solve the 5th postulate (parallel lines) - except I'm substituting the word parallel with Active Rec...

1 min read · [andykoch.hashnode.dev](https://andykoch.hashnode.dev/i-know-this-way-to-its-very-end?utm_source=hashnode&utm_medium=feed)

[Oct 26, 2023](https://hashnode.com/posts/i-know-this-way-to-its-very-end/653a8f4accc41ba2f8835a54)

### [JavaScript: Generator Functions](https://andykoch.hashnode.dev/javascript-generator-functions?utm_source=hashnode&utm_medium=feed)

Generator Functions, Generators and Iterables

2 min read · [andykoch.hashnode.dev](https://andykoch.hashnode.dev/javascript-generator-functions?utm_source=hashnode&utm_medium=feed)

[Apr 21, 2023](https://hashnode.com/posts/javascript-generator-functions/6442ec68c422a627115b660c)

### [Rails: How I tackle major release updates.](https://andykoch.hashnode.dev/rails-how-i-tackle-major-release-updates?utm_source=hashnode&utm_medium=feed)

I believe it is the responsibility of the development team to continually be aware of major new releases of dependencies in their project, such as Ruby, Rails, databases, and core gems the project relies upon - the team should have at minimum a rough...

2 min read · [andykoch.hashnode.dev](https://andykoch.hashnode.dev/rails-how-i-tackle-major-release-updates?utm_source=hashnode&utm_medium=feed)

[Apr 4, 2023](https://hashnode.com/posts/rails-how-i-tackle-major-release-updates/642c5ef715d5d4a403469463)
