Generated migrations to add foreign keys for ids, updated attr accessible on models.