upgrade schema, add habtm relation with extra field