Seed renamed posts properly

This commit is contained in:
Toby Zerner 2015-02-13 11:44:19 +10:30
parent edfd053fc2
commit 84f29b3419

View File

@ -62,8 +62,8 @@ class DiscussionTableSeeder extends Seeder
'discussion_id' => $discussion->id,
'time' => $startTime = date_add($startTime, date_interval_create_from_date_string('1 second')),
'user_id' => rand(1, $users),
'type' => 'title',
'content' => $discussion->title
'type' => 'renamed',
'content' => json_encode(array($faker->realText(rand(20, 40)), $discussion->title))
]);
} else {
$edited = rand(1, 20) == 1;