write migrations for associations