Update seed file (#19480)
This commit is contained in:
parent
94ba297c43
commit
a475fb9169
1 changed files with 2 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ puts "Seeding with multiplication factor: #{SEEDS_MULTIPLIER}\n\n"
|
|||
Settings::UserExperience.public = true
|
||||
Settings::General.waiting_on_first_user = false
|
||||
Settings::Authentication.providers = Authentication::Providers.available
|
||||
Settings::Authentication.allow_email_password_registration = true
|
||||
|
||||
##############################################################################
|
||||
|
||||
|
|
@ -253,7 +254,7 @@ seeder.create_if_none(Article, num_articles) do
|
|||
|
||||
article = Article.create!(
|
||||
body_markdown: markdown,
|
||||
featured: true,
|
||||
featured: i.zero?, # only feature the first article,
|
||||
show_comments: true,
|
||||
user_id: User.order(Arel.sql("RANDOM()")).first.id,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue