I use acts_as_ferret to my business model, and it work very well in development env. However, the problem is when I try to rake db:fixtures:load, it always show an errors
"Mysql::Error: Unknown column 'log_file' in 'field list': INSERT INTO `businesses` (`city`, `address1`, `updated_at`, `zip`, `logo`, `busname`, `id`, `lng`, `log_file`, `port`, `description`, `fax`, `phone`, `first_name`, `host`, `lat`, `last_name`, `log_level`, `pid_file`, `created_at`, `state`, `email`) VALUES ('New York', '106 Bayard St', '2008-08-26 14:28:47', 10013, 'tonys_pizza_logo', 'Tony\'s Pizza', 569266725, -74.008878, 'log/ferret_server.log', 9010, 'The best place to get pizza!', '7776662222', '8887772222', 'Tony', 'localhost', 40.72092, 'DiMaggio', 'warn', 'log/ferret.pid', '2008-08-26 14:28:47', 'NY', 'tony@tp.com')"
My business schema does not have any one log_file, host, port, pid_file, log_level. (I belive these field come from ferret), I think that ferret trying to put this filed into the database with the object. does any one know how to fix this problem. Inaddtion, the following code is in my business model
class Business < ActiveRecord::Base
acts_as_ferret :fields=>[ :coupon_title, :busname], :ferret=>{:or_default=>true}
has_many :coupons
private
def coupon_title return coupons.collect{|c| c.title}.uniq.join(' ') end
end