rails icon indicating copy to clipboard operation
rails copied to clipboard

Ruby on Rails

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

Fixes #51172. In the touched in this PR test case migrations were not properly reverted, and so this migration from the failing test case was not running https://github.com/rails/rails/blob/b6285e98f01373ddd4114735e6548592128c32a8/activerecord/test/cases/migration/compatibility_test.rb#L740-L744 because we...

activerecord

### Steps to reproduce ```ruby require 'bundler/inline' gemfile(true) do source 'https://rubygems.org' gem 'rails', '~> 7' gem 'sqlite3', platform: :mri end require 'active_record' require 'minitest/autorun' ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') ActiveRecord::Base.logger =...

### Motivation / Background This Pull Request has been created because some endless and beginless range comparisons raise `RangeError` due to `ActiveSupport::CompareWithRange` ### Detail This Pull Request changes the `CompareWithRange#===`...

activesupport

### Motivation / Background SELECT queries are idempotent and thus safe to retry automatically. This commit leverages `allow_retry` to enable automatic retries on queries that go through `ActiveRecord::ConnectionAdaptersDatabaseStatements#select`. This should...

activerecord

### Motivation / Background This PR defines a new Active Record configuration, to tune the default database that gets used when generating migrations. Applications that have sharded DBs, usually define...

activerecord
docs

### Motivation / Background Fixes https://github.com/rails/rails/issues/51129. ### Detail When using composite primary keys in a model, the `primary_key` will be an array. This raises an issue when calling the `_ids`...

activerecord

Extracted from: https://github.com/rails/rails/pull/50793 Right now quoting table or column names requires a leased Adapter instance, even though none of the implementations actually requires an active connection. The idea here is...

activerecord

### Steps to reproduce Managed to reproduce CI failure at https://buildkite.com/rails/rails-nightly/builds/206#018dd344-8ac6-45bb-b9b6-18553e433e1a/1202-1211 ```ruby git clone https://github.com/rails/rails cd rails/activerecord bundle exec rake db:mysql:rebuild bundle install ARCONN=mysql2 bin/test test/cases/multi_db_migrator_test.rb test/cases/migration/compatibility_test.rb -n "/^(?:MultiDbMigratorTest#(?:test_migrator_db_has_no_schema_migrations_table)|CompatibilityTest6_0#(?:test_datetime_doesnt_set_precision_on_change_column))$/" --seed...

activerecord
ci issues

### Steps to reproduce Using `Model.query_constraints` with a single column that's not the primary key raises an error meant for passing more than 2 columns. This issue has existed since...

### Steps to reproduce 1. Create a rails app 2. Within the Gemfile, add the following: ``` gem "azure-storage-blob", "~> 2.0", require: false gem "faraday", "~> 2.0" ``` 3. Run...

third party issue