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

Generated migration should specify the ActiveRecord release #8

Open
esquivalient opened this issue Aug 22, 2023 · 0 comments
Open

Generated migration should specify the ActiveRecord release #8

esquivalient opened this issue Aug 22, 2023 · 0 comments

Comments

@esquivalient
Copy link
Member

The migration generator for ActiveMailer doesn't include the ActiveRecord version number, which causes this error when the migration is executed

StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Active Record release the migration was written for:

  class CreateInviteTeamMemberEmails < ActiveRecord::Migration[7.0]
/path/to/rails_root/db/migrate/20220804162528_create_invite_team_member_emails.rb:1:in `<main>'

The generator should include the current ActiveRecord number for the project when creating the ActiveMailer migration.

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

No branches or pull requests

1 participant