Mysql2::Error: You can't specify target table 'fact_names' for update in FROM clause: DELETE FROM `fact_names` WHERE (id in (select id from fact_names where name='_timestamp') and id<>46175)/home/foreman/git/foreman/vendor/bundle/ruby/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'