api.rubyonrails.org

When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...

github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

github.com

We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...

github.com

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...

css-tricks.com

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...

til.hashrocket.com

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...

guides.rubyonrails.org

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.org

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...

leomayleomay.github.io

Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...

makandra dev
eager.io

SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...

css-tricks.com

Insanely detailled guide about controlling copy & paste behavior using web technology in 2015. Note that you can now trigger a...