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

rake acts_as_taggable_on_engine:install:migrations doesn't work with rails 5.1 #866

Closed
spnkr opened this issue Oct 8, 2017 · 2 comments
Closed

Comments

@spnkr
Copy link

spnkr commented Oct 8, 2017

  1. need to inherit from ActiveRecord::Migration[5.1], not ActiveRecord::Migration
  2. the indexes it adds in these auto generated migrations have duplicates, and so rake db:migrate fails
@kuwze
Copy link

kuwze commented Oct 10, 2017

I got rid of this by having this in my Gemfile:

gem 'acts-as-taggable-on', '~> 5.0'

and deleting vendor/bundle and rerunning bundle

Also I deleted the migration files the broken version generated and regenerated them (not sure if that was necessary).

@lightbe
Copy link

lightbe commented Dec 5, 2017

I was having the same problem because it installed version 4. I reinstalled version 5 and got my databases created successfully.

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

4 participants