fix projects and devices model relation
uniq index  migrations
device#update_armory 更新
订正 product 和 devices 的关系为一对多