Project

General

Profile

How to update user model association with plugins model with migration

Added by rangga rahadian over 7 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
thanks

userBadge model : user_badge.rb

Badge model : badge.rb

a.JPG (57.1 KB) a.JPG
b.JPG (24.9 KB) b.JPG
c.JPG (12.2 KB) c.JPG
e.JPG (13 KB) e.JPG