Forgot to require elasticsearch/model.

Otherwise you need to include elasticsearch-models in your app's Gemfile.