After Rails update from 4.1.1 to 4.1.4

I have defined indices:
---
ThinkingSphinx::Index.define :news, :with => :active_record, :delta => 
ThinkingSphinx::Deltas::DelayedDelta do
  indexes content
  indexes title

  has created_at, updated_at
  has sites.id, :as => :site_id
  has published
end
---

And i started getting error:
---
indexing index 'news_core'...
ERROR: index 'news_core': sql_range_query: Unknown column 'sites.news_id' 
in 'on clause' (DSN=mysql://root:***@localhost:3306/development).
total 0 docs, 0 bytes
total 0.011 sec, 0 bytes/sec, 0.00 docs/sec
indexing index 'news_delta'...
ERROR: index 'news_delta': sql_range_query: Unknown column 'sites.news_id' 
in 'on clause' (DSN=mysql://root:***@localhost:3306/development).
---

Models:
class News < ActiveRecord::Base
  has_and_belongs_to_many :sites
end

class Sites < ActiveRecord::Base
  has_and_belongs_to_many :news
end

Can somone help me solve this issue? :(

*P.S.*
Sphinx 2.1.8-id64-release (rel21-r4675)
gems:
thinking-sphinx (3.1.1)
ts-delayed-delta (2.0.2)
delayed_job (4.0.1)
delayed_job_active_record (4.0.1)

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to