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

9 lines
202 B
Ruby

current_year = Date.current.year
start_year = current_year - 3
end_year = current_year + 10
(start_year..end_year).each do |i|
year = Year.find_or_create_by(name: "#{i} - #{i + 1}")
year.save!
end