namespace :wittle do desc "Generate new puzzles for the day" task :generate_puzzles => :environment do Wittle::Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal) Wittle::Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard) end end