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 when running rake db:migrate #3

Open
brettallred opened this issue Jul 28, 2018 · 3 comments
Open

Error when running rake db:migrate #3

brettallred opened this issue Jul 28, 2018 · 3 comments

Comments

@brettallred
Copy link

bundle exec rake db:migrate
rake 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:

Fix is easy by manually modifying the generated migration from
class CreateElasticProductState < ActiveRecord::Migration
to
class CreateElasticProductState < ActiveRecord::Migration[4.2]

@dhonig
Copy link

dhonig commented Jul 30, 2018

@brettallred can you send a PR for this fix and we'll get it merged in?

@mtomov
Copy link
Contributor

mtomov commented Aug 1, 2018

Hey @brettallred , thanks for trying the extension out! If that's the only problem you're having with the set-up, I'd be super happy : )

If adding [4.2] won't break the migrations for Rails 4.x, I'm happy to add that.

Thanks again for trying it out and brining the issue up!

@brettallred
Copy link
Author

@dhonig @mtomov - Sounds good. I'll get something up this week.

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

3 participants