db(migrations): simplify migration history to only create the join table
db(belongs_to): use belongs_to and inline index to simplify migrations