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

running closure_tree:migration gives: Directly inheriting from ActiveRecord::Migration is not supported. #317

Open
botp opened this issue Jul 15, 2018 · 0 comments

Comments

@botp
Copy link

botp commented Jul 15, 2018

eg

$ bin/rails -v

Rails 5.1.6

$ gem query closure_tree

*** LOCAL GEMS ***

closure_tree (6.6.0)

$ bin/rails db:migrate

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 CreateServiceClientDepartmentHierarchies < ActiveRecord::Migration

....
that should be ActiveRecord::Migration [5.1]

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