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

Version Path
onotole-2.0.2 templates/seeds.rb
onotole-2.0.1 templates/seeds.rb
onotole-2.0.0 templates/seeds.rb
onotole-1.2.11 templates/seeds.rb
onotole-1.2.10 templates/seeds.rb
onotole-1.2.9 templates/seeds.rb
onotole-1.2.8 templates/seeds.rb
onotole-1.2.7 templates/seeds.rb
onotole-1.2.6 templates/seeds.rb
onotole-1.2.5 templates/seeds.rb
onotole-1.2.4 templates/seeds.rb