38 lines
726 B
Ruby
38 lines
726 B
Ruby
|
|
|
||
|
|
user = User.create!(
|
||
|
|
email: "nahlebiscanon@alexkurtzman.com",
|
||
|
|
password: "password",
|
||
|
|
password_confirmation: "password"
|
||
|
|
)
|
||
|
|
|
||
|
|
2.times do
|
||
|
|
category = Category.create!(
|
||
|
|
title: "Femslash Creations",
|
||
|
|
description: "This is a description"
|
||
|
|
)
|
||
|
|
|
||
|
|
2.times do
|
||
|
|
topic = ForumTopic.create!(
|
||
|
|
title: "Sample Topic",
|
||
|
|
description: "This is a topic description",
|
||
|
|
category: category
|
||
|
|
)
|
||
|
|
|
||
|
|
2.times do
|
||
|
|
thread = ForumThread.create!(
|
||
|
|
title: "Thread title",
|
||
|
|
body: "Thread body",
|
||
|
|
forum_topic: topic
|
||
|
|
)
|
||
|
|
|
||
|
|
2.times do
|
||
|
|
Reply.create!(
|
||
|
|
body: "nahleb is canon brother",
|
||
|
|
thread_id: thread.id,
|
||
|
|
user: user
|
||
|
|
)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|