e.g. when `environment` association will get renamed to `kt_environment` this migration will fail. It would be probably more correct to fix the migration then, but that almost never happens so that is why I am suggesting to be defensive and to use locally defined ActiveRecord models to do the job and not to be dependent on models from `app/models`