There is a way to use multiple databases in Rails. You may have asked yourself how you're able to...
Don't insert table rows in a Rails database migration. This will break tests that expect that database to be...
mysql> SELECT @@global.version; +------------------+ | @@global.version | +------------------+ | 5.6.30 | +------------------+ 1 row in set (0,00 sec) MySQL 5.6 Reference Manual says "BLOB and TEXT...
Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...
It's not possible to change the bwlimit of Proxmox storages via the Web-UI (at least in Proxmox 7...
In the past we validate and set default values for boolean attributes in Rails and not the database itself.
When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...
Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...
Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...
With Ubuntu 24.04 it's not longer possible to setup FDE with BTRFS The new installer won't offer you...
In this example we assume that not only the storage gem changes but also the file structure on disc.
When adding a new field to your model's database table, don't set any defaults in the database.
jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...
10.0.0 2024-03-07 Compatible changes console command: You can now globally disable the IRB multiline feature by setting irb...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
We are using assignable_values for managing enum values in Rails. Nevertheless Rails is adding more support for enum attributes...
Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...
Since Rails 7 you are able to encrypt database information with Active Record. Using Active Record Encryption will store an...
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...
You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...
To attach files to your records, you will need a new database column representing the filename of the file...