rewrite migration for adding index
fix bug orders belongs to user