Sha256: e1cc76c2090caca934f4431fc4fd1ededcbe82258494f73e536965bad23f041e
Contents?: true
Size: 316 Bytes
Versions: 11
Compression:
Stored size: 316 Bytes
Contents
# frozen_string_literal: true Rails.logger = Logger.new STDOUT seed_files_list = Dir[File.join(Rails.root, 'db', 'seeds', '*.rb')] seed_files_list.sort.each_with_index do |seed, i| load seed Rails.logger.info "Progress #{i + 1}/#{seed_files_list.length}. Seed #{seed.split('/').last.sub(/.rb$/, '')} loaded" end
Version data entries
11 entries across 11 versions & 1 rubygems