Karl McCollester
Joined
220 Experience
2 Lessons Completed
0 Questions Solved
Activity
Any plans to do a version with vanilla JS and/or turbo?
If you use:
rails g model Comment commentable:references{polymorphic}
rails auto creates the compound index for lookup as part of the migration:
t.references :commentable, polymorphic: true
This works in Rails 5 and probably goes back to rails 4.