removed debugging puts
rescue ActiveRecord::StatementInvalid on automatic plan creation