When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
If you were using Dusen for its query parsing and LIKE queries, we recommend to migrate to Minidusen, which extracts...
Sometimes you want to test migrations with production or staging data. Dumping single tables makes sense if a complete dump...
The linked article shows what current browsers do when you click a link like this: 1-562-867-5309
PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...
Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...
Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...
ActiveRecord offers an explain method similar to using EXPLAIN SQL statements on the database. However, this approach will explain all...
Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...
You can find out about disk space usage of all tables within your database by running this: SELECT table_name...
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...
SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...
If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...
Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...
SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...
Insanely detailled guide about controlling copy & paste behavior using web technology in 2015. Note that you can now trigger a...