Create thread migration file

The threads table needs to be related to other tables