Skip to content

Commit

Permalink
Removed password paramater from user generation in seeds.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmckissock committed Jun 13, 2024
1 parent d539fdf commit 964a1db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
Article.destroy_all

users = [
{name: "Alice", email: "[email protected]", password: "password"},
{name: "Bob", email: "[email protected]", password: "password"}
{name: "Alice", email: "[email protected]"},
{name: "Bob", email: "[email protected]"}
]

users.each do |user_params|
User.find_or_create_by!(email: user_params[:email]) do |user|
user.name = user_params[:name]
user.password = user_params[:password]
user.password = "password"
end
end

Expand Down

0 comments on commit 964a1db

Please sign in to comment.