Skip to content

Commit

Permalink
fix fake_data failed at User.is_new? validator (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
favadi authored Mar 3, 2020
1 parent fd63a7d commit cc35439
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/fake_data.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class FakeDataGenerator
password: password,
password_confirmation: password,
username: Faker::Internet.user_name(name, %w(_)),
created_at: User::NEW_USER_DAYS.days.ago,
}
create_args.merge!(is_moderator: true) if i % 7 == 0
users << User.create!(create_args)
Expand Down

0 comments on commit cc35439

Please sign in to comment.