You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to integrate this ratyrate gem into my rails application. After installing the gem running rails g ratyrate [my user equivalent] when I subsequently attempt to migrate the database, I continually get the following error:
$ rails db:migrate
== 20190508052745 CreateRates: migrating ======================================
-- create_table(:rates)
-> 0.0033s
-- add_index(:rates, :rater_id)
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:
Index name 'index_rates_on_rater_id' on table 'rates' already exists
...
The only way I've found to bypass this problem is to comment out or remove the add_index lines from the create_rates and create_rating_caches migrations, but I'm not sure if I would lose the functionality of the gem. Regardless I'm getting this issue from a fresh install.
The text was updated successfully, but these errors were encountered:
I am attempting to integrate this ratyrate gem into my rails application. After installing the gem running
rails g ratyrate [my user equivalent]
when I subsequently attempt to migrate the database, I continually get the following error:The only way I've found to bypass this problem is to comment out or remove the add_index lines from the
create_rates
andcreate_rating_caches
migrations, but I'm not sure if I would lose the functionality of the gem. Regardless I'm getting this issue from a fresh install.The text was updated successfully, but these errors were encountered: