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

ActiveRecord::Migration is not supported. #77

Open
m-abdurrehman opened this issue May 24, 2021 · 1 comment
Open

ActiveRecord::Migration is not supported. #77

m-abdurrehman opened this issue May 24, 2021 · 1 comment

Comments

@m-abdurrehman
Copy link

After adding gem and migration when I tried to run migration, it gives this error.

After specifying rails version error goes.

I think it should be solved on gem side

=> Working syntax class CreateComments < ActiveRecord::Migration[6.1]
=> Not Working syntax class CreateComments < ActiveRecord::Migration

rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:

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

  class CreateComments < ActiveRecord::Migration[4.2]

Caused by:
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateComments < ActiveRecord::Migration[4.2]
@CloCkWeRX
Copy link

I've forked this project to https://github.com/fatfreecrm/acts_as_commentable/ which should resolve this issue.

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

2 participants