-
Notifications
You must be signed in to change notification settings - Fork 122
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
tapioca dsl
fails on Rails 6.1 models due to ActiveRecord::Encryption reference
#1913
Comments
Thanks for the issue. I believe Rails 6.1 will be EOL soon so I'm not sure if we should support this out of the box. In the meantime feel free to override the method and remove the reference in your application. |
For now, placing this in e.g. your # https://github.com/Shopify/tapioca/issues/1913
module ActiveRecord
module Encryption
class EncryptedAttributeType; end # rubocop:disable Lint/EmptyClass
end
end Dropping support for a Rails version (that is not EOL since a long time) might be worth a major version jump? |
@swiknaba Rails 6.1 has been EOL since Rails 7.1 was released in October 2023 based on the maintenance policy of Rails:
The core team has chosen to continue doing security releases for 6.1 series, as an exception, but that doesn't mean it is a supported version. Tapioca follows the Rails and Ruby support schedules very closely, we drop official support for any versions that are no longer supported. We enforce minimum versions of Ruby using the We have opted to not do that, and to allow folks on older Ruby versions to be able to use Tapioca, but we won't be testing against older versions and, thus, support for them is best effort. |
Repo with simple reproduction here: https://github.com/aalong-tr/tapioca-rails-6-encryption
Tapioca version 0.14.3 includes improvements from #1904 to better handle Rails 7 encrypted attribute behaviors. Unfortunately this logic references a constant that does not exist on Rails 6. As a result, the
tapioca dsl
command run against a Rails 6.1 application produces the error:The text was updated successfully, but these errors were encountered: