CSV.open(Rakudax::Base.verify_path.join("after").join(model.name), 'w') do | file |
          scope = const_get("#{model.name}After").all
          unless model.after.scope.nil?
            (model.after.scope.joins || []).each do |join|
              scope = scope.joins(join.to_sym)