Hi Yuri This certainly sounds odd.
What type is the target_usage_id column in your digitalassets table? -- Pat On 1 Sep 2014, at 7:40 pm, [email protected] wrote: > Hi all, for first sorry for my english. > > I've a problem with a TS attribute, in the dev environment everything work > fine but when I try to update the code in the staging environment I've got > the following error from Capistrano. > > Cannot automatically map attribute target_usage_id in Digitalasset to an > equivalent Sphinx type (integer, float, boolean, datetime, string as > ordinal). > You could try to explicitly convert the column's value in your define_index > block: > has "CAST(column AS INT)", :type => :integer, :as => :column > > My Models are: "Digitalasset" and "TargetUsage" > > Digitalasset > belongs_to :target_usage > > TargetUsage > has_many :digitalassets > > In define_index I've got > > ... > has :target_usage_id > ... > > table target_usages have a int (11) PK id > > The strange thing is that I've the same situation with another field > "image_type_id" that works identically as target_usage_id (same relation with > Digitalasset) so I've copied the code and changed for fit the new attribute. > > I'm using TS 2.0.14 > > Thanks in advance for your help. > > Yuri. > > > > > > > -- > 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. -- 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.
