Skip to content

Comments

Add support activerecord 8.1#589

Merged
winebarrel merged 7 commits intoridgepole:mainfrom
mugitti9:feature/add_support_activerecord_81
Oct 29, 2025
Merged

Add support activerecord 8.1#589
winebarrel merged 7 commits intoridgepole:mainfrom
mugitti9:feature/add_support_activerecord_81

Conversation

@mugitti9
Copy link
Contributor

@mugitti9 mugitti9 commented Oct 23, 2025

Thank you for always maintaining ridgepole. 🚀

To support Active Record (activerecord gem) 8.1, I added it to the CI test matrix and also fixed issue #524 and others (see below).

Notes

ActiveRecord Version Description

About contents of the commit 271f44a

Since this update affects ActiveRecord 8.1 users due to issue #524, I fixed the content of #524 together.

About contents of the commit b4bc938

Due to the changes introduced in rails/rails#53281, ActiveRecord::SchemaDumper now dumps schema definitions in alphabetical order.
As a result, tests in Rails 8.1 started failing when the columns in create_table statements or SQL definitions were not listed alphabetically.To address this, we updated the column order in our test create_table blocks and SQL statements to follow alphabetical order.

In this commit, only the column order within the tests was changed to be alphabetical; the test logic itself remains unchanged.

Copilot AI review requested due to automatic review settings October 23, 2025 10:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for ActiveRecord 8.1 by updating the dependency constraint and adapting test fixtures to accommodate ActiveRecord 8.1's alphabetical column ordering in schema dumps. The changes ensure compatibility with Rails 8.1 (released) while maintaining backward compatibility with existing versions.

Key changes:

  • Updated activerecord gem dependency to support versions >= 6.1, < 8.2
  • Reordered columns in test fixtures to match ActiveRecord 8.1's alphabetical schema dumping
  • Reordered index definitions in SQL fixtures to maintain alphabetical consistency

Reviewed Changes

Copilot reviewed 119 out of 119 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ridgepole.gemspec Updated activerecord dependency upper bound from 8.1 to 8.2
spec/postgresql/ridgepole_test_tables.sql Reordered columns and indexes alphabetically in SQL table definitions
spec/postgresql/migrate/*.rb Reordered columns alphabetically in create_table blocks across multiple migration specs
spec/mysql/ridgepole_test_tables.sql Reordered columns and indexes alphabetically in SQL table definitions
spec/mysql/migrate/*.rb Reordered columns alphabetically in create_table blocks across multiple migration specs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mugitti9 mugitti9 changed the title Feature/add support activerecord 81 Add support activerecord 81 Oct 23, 2025
@mugitti9 mugitti9 changed the title Add support activerecord 81 Add support activerecord 8.1 Oct 23, 2025
@coveralls
Copy link

coveralls commented Oct 23, 2025

Coverage Status

coverage: 97.105% (-0.07%) from 97.173%
when pulling 5c0ee95 on mugitti9:feature/add_support_activerecord_81
into 5915507 on ridgepole:main.

@winebarrel winebarrel self-assigned this Oct 26, 2025
Copilot AI review requested due to automatic review settings October 28, 2025 15:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 118 out of 118 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings October 29, 2025 01:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 119 out of 119 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mugitti9
Copy link
Contributor Author

@winebarrel
Thank you so much for handling the merge work!
I noticed that the CI was failing after merging the latest main, so I’ve fixed the tests.
I’d appreciate it if you could take a look when you have a moment.

Copy link
Member

@winebarrel winebarrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you :-)
Good job!

@winebarrel winebarrel merged commit 4797c1f into ridgepole:main Oct 29, 2025
90 checks passed
@mugitti9 mugitti9 deleted the feature/add_support_activerecord_81 branch October 29, 2025 09:59
@winebarrel
Copy link
Member

3.1.0 has been released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants