We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8acec3 commit 993dcc5Copy full SHA for 993dcc5
1 file changed
db/seeds.rb
@@ -73,3 +73,23 @@
73
question.save!
74
questions[i] = question
75
end
76
+
77
+program_code = "
78
+Turtle.draw do
79
+ background maroon
80
+ pencolor honeydew
81
+ 450.times do
82
+ forward 100
83
+ turnright 70
84
+ end
85
+end
86
+"
87
88
+5.times do |i|
89
+ program = Program.new(:author_username => users[i].username,
90
+ :title => Faker::Lorem.sentence,
91
+ :description => Faker::Lorem.sentences.join(" "),
92
+ :source_code => program_code)
93
+ program.save!
94
95
0 commit comments