rails icon indicating copy to clipboard operation
rails copied to clipboard

Ruby on Rails

Results 459 rails issues
Sort by recently updated
recently updated
newest added

We have a `has_many …, through:` that also involves a scope block, STI and polymorphic associations (bingo!). Joining on this association worked fine in Rails 5.0.7.2, but broke when updating...

activerecord

### Summary Add support for managing collations in PostgreSQL. https://www.postgresql.org/docs/current/collation.html Add `collations`, `create_collation`, and `drop_collation` to `PostgreSQLAdapter`, and `AbstractAdapter` as empty methods. There is existing support for collations but only...

activerecord
docs

### Summary Resolves #45775 Fixes what I believe is a bug where a uniqueness validation on a belongs_to association was not using the correct value in the query for existing...

activerecord

### Steps to reproduce You can just start from a fresh `rails new [project-name]` installation. Channel code: ```ruby class ArticleChannel < ApplicationCable::Channel def subscribed stream_from "ArticleChannel" end def unsubscribed #...

### Steps to reproduce - Create a template app/views/foo/bar.text.erb ```ruby details = { locale: ['en'], formats: ['text'], handlers: ['erb'], variants: []} ActionController::Base.view_paths.find('bar', 'foo', false, details, nil, []) ``` ### Expected...

actionview
more-information-needed

### Summary Fixes https://github.com/rails/rails/issues/45398 Ignore order of SQL joins, select, includes, left_outer_joins, eager_load and preload for ActiveRecord::Relation#or & for ActiveRecord::Relation#and

activerecord

### Steps to reproduce Setting `has_one_attached :content, dependent: nil` on an ActiveRecord model does not work as expected. ### Expected behavior When calling destroy on the record which has `has_one_attached...

attached PR
activestorage

### Summary Similar to what we do for schema files, we now infer the default `migrations_paths` for a database configuration using the database specification name. We still allow overriding these...

activerecord
activesupport
railties
docs
pinned

### Summary This allows ActiveRecord::Point to be cast or serialized from a hash with :x and :y keys of numeric values, mirroring the functionality of existing casts for string and...

activerecord

### Summary To expand on PostgreSQL enum support and the `create_enum` command that comes with Rails 7, adding migration commands for `rename_enum`, `add_enum_value`, and `rename_enum_value`. Reversibility included with `rename_enum`, and...

activerecord
docs