A platform for community discussion. Free, open, simple.
FIX: Modify frozen String and profile_db_generator uses category id (#8080)
Krzysztof Kotlarek1d73754e8442
diff --git a/script/profile_db_generator.rb b/script/profile_db_generator.rbindex 0c9d64a45df..d356a0b6907 100644--- a/script/profile_db_generator.rb+++ b/script/profile_db_generator.rb@@ -35,7 +35,7 @@ def sentencegabbler.learn(story)end- sentence = ""+ sentence = +""until sentence.length > 800 dosentence << @gabbler.sentencesentence << "\n"@@ -104,7 +104,7 @@ putsputs "Creating 100 topics"topic_ids = 100.times.map do- post = PostCreator.create(users.sample, raw: sentence, title: sentence[0..50].strip, category: categories.sample.name, skip_validations: true)+ post = PostCreator.create(users.sample, raw: sentence, title: sentence[0..50].strip, category: categories.sample.id, skip_validations: true)putc "."post.topic_id