Skip to content

Commit d71816b

Browse files
hashrocketeervnegrisoloGabriel Reis
committed
Add published_at in the seeds file
Co-authored-by: Vinicius Negrisolo <vinicius.negrisolo@hashrocket.com> Co-authored-by: Gabriel Reis <gabriel.reis@hashrocket.com>
1 parent 11baab7 commit d71816b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

priv/repo/seeds.exs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,25 @@ developer =
3333
body: "A Gold Master Test in Practice",
3434
channel: phoenix_channel,
3535
developer: developer,
36-
slug: Post.generate_slug()
36+
slug: Post.generate_slug(),
37+
published_at: DateTime.utc_now()
3738
})
3839

3940
Repo.insert!(%Post{
4041
title: "Controlling Your Test Environment",
4142
body: "Slow browser integration tests are a hard problem",
4243
channel: elixir_channel,
4344
developer: developer,
44-
slug: Post.generate_slug()
45+
slug: Post.generate_slug(),
46+
published_at: DateTime.utc_now()
4547
})
4648

4749
Repo.insert!(%Post{
4850
title: "Testing Elixir",
4951
body: "A Rubyist's Journey",
5052
channel: erlang_channel,
5153
developer: developer,
52-
slug: Post.generate_slug()
54+
slug: Post.generate_slug(),
55+
published_at: DateTime.utc_now()
5356
})
5457
end)

0 commit comments

Comments
 (0)