Added thing_type model and modified SQL query to join thing_type.
adding migration files