Change seeds to provide meaningful data for querying public_author from API
This commit is contained in:
@@ -41,7 +41,15 @@ puts "Creating Users"
|
||||
def create_user(email, username = Faker::Name.name)
|
||||
pwd = '12345678'
|
||||
puts " #{username}"
|
||||
User.create!(username: username, email: email, password: pwd, password_confirmation: pwd, confirmed_at: Time.current, terms_of_service: "1")
|
||||
User.create!(
|
||||
username: username,
|
||||
email: email,
|
||||
password: pwd,
|
||||
password_confirmation: pwd,
|
||||
confirmed_at: Time.current,
|
||||
terms_of_service: "1",
|
||||
public_activity: (rand(1..100) > 30)
|
||||
)
|
||||
end
|
||||
|
||||
admin = create_user('admin@consul.dev', 'admin')
|
||||
|
||||
Reference in New Issue
Block a user