rails
rails copied to clipboard
Ruby on Rails
### Summary [change to documentation only] I've attempted to provide some more comprehensive documentation by listing the databases that **do** support CTEs. In creating the list, I've included those databases...
### Summary Before we load an association for the first time, we can preload the association. This will eliminate most standard N+1 queries in Rails apps. We do this by...
### Summary The schema dump format (Ruby/SQL) can currently only be set globally, either via setting `ActiveRecord.schema_format` or by setting `ENV['SCHEMA_FORMAT']`. Thanks to #43530 we can set the dump _filename_,...
As noted in https://github.com/rails/rails/pull/44495, since Ruby 3.0, common exceptions like NoMethodError now include the full inspect value in their message, regardless of size. That helps give control over the object's...
Change `ActionController::Base` -> `ApplicationController`, on the usage example.
I have a Rails API serving a React SPA. It works perfect but I had to do a modification to use ActiveStorage's direct uploads. The problem appears when trying to...
### Summary This is to revive #40251. For PostgreSQL, the migrator should use both database and schema when creating a lock so concurrent migrations can be executed across schemas (e.g....
> Sets readonly attributes for the returned relation. The current documentation gives the impression that it can manipulate `attr_readonly`.
The next step in building out active record dynamic includes and the new load tree debug view as proposed in https://github.com/rails/rails/pull/45071 this build on the load tree from https://github.com/rails/rails/pull/45161 and...
This mirrors the LOWER function that already exists. This SQL function is useful for string fields but also for PostgreSQL range fields where UPPER returns the upper bound of the...