ratyrate
ratyrate copied to clipboard
average_cache_migration generates index name that is too long for Postgres
The following statement generates an index name upwards of 63 characters long which Postgres errors out on.
add_index :average_caches, [:rater_id, :rateable_id, :rateable_type]
I would recommend explicit naming of the index to avoid this issue.
add_index :average_caches, [:rater_id, :rateable_id] add_index :average_caches, [:rateable_type]