How to update user model association with plugins model with migration

Added by rangga rahadian about 2 years ago

how to add association has_many_through from 2 plugin model to redmine user model? is that possible

here is my db schema,

and i tried to add code to my migration (line 5-6)

i as expected, the migration fail on line 5, please help

userBadge model : user_badge.rb

Badge model : badge.rb

a.JPG (57.1 KB)

b.JPG (24.9 KB)

c.JPG (12.2 KB)

e.JPG (13 KB)