Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7 postgres compatibility #29

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

spearce-citybase
Copy link

@spearce-citybase spearce-citybase commented Apr 23, 2024

Hi friend. We recently made this change in our forked repo to support Rails 7.0+. Thought I'd drop it here in case you wanted to pull in any changes.

Description

The 7.0+ postgres activerecord adapter added a create_enum method that conflicts with the create_enum method of power_enum. This PR resolves this naming conflict by renaming the method to create_power_enum.

Changes

  • Rename create_enum to create_power_enum
  • Rename remove_enum to remove_power_enum
  • timestamped_migrations was moved from ActiveRecord::Base to ActiveRecord in Rails 7.0.
  • Remove compatibility with rails <7.0
  • Update version to 5.0.0

@spearce-citybase spearce-citybase marked this pull request as ready for review April 23, 2024 16:37
@albertosaurus
Copy link
Owner

Thanks, I'll take a look.

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.

2 participants