rebuild of rails' ActiveRecord