Sha256: b9b463d63be7c652944997d58ad21ed17807962177f44751b005dcb2802eb6b2

Contents?: true

Size: 556 Bytes

Versions: 12

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

if !Rails.env.production? || ENV.fetch("SEED", nil)
  print "Creating seeds for decidim-system...\n" unless Rails.env.test?

  password = ENV.fetch("DECIDIM_SYSTEM_USER_PASSWORD", "decidim123456789")

  Decidim::System::Admin.find_or_initialize_by(email: "system@example.org").update!(
    password: password,
    password_confirmation: password
  )

  Decidim::Organization.find_each do |organization|
    Decidim::System::CreateDefaultPages.call(organization)
    Decidim::System::PopulateHelp.call(organization)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-system-0.27.9 db/seeds.rb
decidim-system-0.27.8 db/seeds.rb
decidim-system-0.27.7 db/seeds.rb
decidim-system-0.27.6 db/seeds.rb
decidim-system-0.27.5 db/seeds.rb
decidim-system-0.27.4 db/seeds.rb
decidim-system-0.27.3 db/seeds.rb
decidim-system-0.27.2 db/seeds.rb
decidim-system-0.27.1 db/seeds.rb
decidim-system-0.27.0 db/seeds.rb
decidim-system-0.27.0.rc2 db/seeds.rb
decidim-system-0.27.0.rc1 db/seeds.rb