[RAILS] Load enviroment before working with model

There is a several errors which are raised within rake task. They are raised in case that environment is not loaded and models cannot be touched.