Files
project-work/worker-toolkit-stocks-in-the-future/repo/db/seeds/production.rb
Eric Bell 2854619bc9 chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

29 lines
766 B
Ruby

# Add the seed actions for the production environment to this file.
puts "Production seed running."
start_time = Time.now
puts ""
# ---------------------- Add your seed code in this block ----------------------
# Create years
puts "Creating years..."
load(Rails.root.join("db", "seeds", "partials", "years.rb"))
puts "...done."
# Create grades
puts "Creating grades..."
load(Rails.root.join("db", "seeds", "partials", "grades.rb"))
puts "...done."
# Create stocks
puts "Creating stocks..."
load(Rails.root.join("db", "seeds", "partials", "stocks.rb"))
puts "...done."
# ------------------------------------------------------------------------------
end_time = Time.now
run_time = end_time - start_time
puts "Production seed completed in #{run_time} seconds."