This commit adds the foreign key for the environment_id column, which is long overdue. Changelog: other