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

Error while first rake db:migrate #61

Open
zyle87 opened this issue May 23, 2017 · 2 comments
Open

Error while first rake db:migrate #61

zyle87 opened this issue May 23, 2017 · 2 comments

Comments

@zyle87
Copy link

zyle87 commented May 23, 2017

I got an error on the first rake db:migrate

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

  class CreateParaComponents < ActiveRecord::Migration[4.2]
@zyle87 zyle87 changed the title Error while first rake:migrate Error while first rake db:migrate May 23, 2017
@vala
Copy link
Contributor

vala commented May 24, 2017

Is this for Rails 5.1 ?
Since we need to support 4.2 apps, can we just append the version in all our migration files ?

@zyle87
Copy link
Author

zyle87 commented May 24, 2017

You saw right, it was a 5.1 rails project, I gave a shot on a 4.2 rails project and I got this
NoMethodError: undefined method '[]' for #<ActiveRecord::Migration:0x007fcbc295a480>

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