A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
PostgreSQL has partial indexes. With a partial index you tell Postgres to only index rows matching a given query.
Minidusen lets you find text in associated records. Assume the following model where a Contact record may be associated with...
Sometimes you want to find the inverse of an ActiveRecord scope. Depending on what you want to achieve, this is...
We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...
When loading a database dump created with pg_dump into your database, you might run into an error like
It sometimes happen that a database dump, that would want to insert into your development database, does not match the...
The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...
ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
If you have a very large datadir in MariaDB and you want to transfer the data to another host (e.g...
If you're about to handle X509 certificates and don't want to remember/google a handful of openssl commands you...
If you want to prevent that two processes run some code at the same time you can use the gem...
If you have a :string or :text field, you should pair it with a model validation that restricts its length...
PostgreSQL offers three character types for your columns: character varying(n) (also called varchar or just string): Contents are limited...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...
Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...
Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:
Embedding videos on a website is very easy, add a tag to your source code and it just works...
We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...