不能说这里出了什么问题。我正在尝试过滤我的协会的state
财产。address
class Organization < ActiveRecord::Base
has_one :address, :as => :addressable, :dependent => :destroy
define_index do
indexes :name, :sortable => true
has mec_revenue
has 'CRC32(status)', :as => :status, :type => :integer
has 'CRC32(address.state)', :as => :state, :type => :integer
set_property :delta => true
end
end
但是当我运行时rake ts:index
,我收到以下错误。
indexing index 'organization_delta'...
ERROR: index 'organization_delta': sql_range_query: ERROR: missing FROM-clause entry for table "address"
LINE 1: ...S "mec_revenue", CRC32(status) AS "status", CRC32(address.st...
有任何想法吗?