I should have included this. Otherwise you need to include elasticsearch-models in your app's Gemfile.