googleapis / ruby-spanner-activerecord

Spanner<->ActiveRecord adapter for Ruby
MIT License
87 stars 30 forks source link

feat: support Rails 7.1 #278

Closed olavloite closed 10 months ago

olavloite commented 10 months ago

Updates the Spanner Ruby ActiveRecord provider to be compatible with Rails 7.1, but with one major exception:

  1. Rails 7.1 introduced support for composite primary keys.
  2. This makes the third-party composite primary keys gem incompatible with Rails 7.1
  3. This provider used the third-party composite primary keys gem to support interleaved tables

The above means that this PR removes support for interleaved tables when used with Rails 7.1. It does not affect anyone using Rails 7.0, 6.1 or 6.0.

We will re-introduce support for interleaved tables in a separate PR for Rails 7.1 based on the built-in composite primary key support.