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

ArgumentError: Index name 'index_rates_on_rater_id' on table 'rates' already exists #155

Open
ghost opened this issue Feb 13, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2018

ArgumentError: Index name 'index_rates_on_rater_id' on table 'rates' already exists

When running migrations Rails 5.1

@jreyesr
Copy link

jreyesr commented Mar 25, 2018

Got this too. AFAIK, this is caused by the second migration created by Ratyrate, the one with name "[whatever]_create_rates.rb". Ratyrate attempts to create an index, add_index :rates, :rater_id, but, as I see, it is automatically created by the line t.belongs_to :rater. See here, "Add an appropriate index. Defaults to true".
I solved it by simply commenting the index line before migrating. Might need some extra attention. I'm going to try and see which code generates it.

@iiewad
Copy link

iiewad commented May 14, 2018

I've got this error. Please fixed it :(
thx.

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