Sha256: b7c2bf6d562a327e66007da9e1edae7f46f239fa3fc3c65868ec9fb8b49dba9f

Contents?: true

Size: 430 Bytes

Versions: 14

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

if !Rails.env.production? || ENV["SEED"]
  print "Creating seeds for decidim-system...\n" unless Rails.env.test?

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-system-0.15.2 db/seeds.rb
decidim-system-0.15.1 db/seeds.rb
decidim-system-0.15.0 db/seeds.rb
decidim-system-0.14.4 db/seeds.rb
decidim-system-0.14.3 db/seeds.rb
decidim-system-0.14.2 db/seeds.rb
decidim-system-0.14.1 db/seeds.rb
decidim-system-0.13.1 db/seeds.rb
decidim-system-0.12.2 db/seeds.rb
decidim-system-0.13.0 db/seeds.rb
decidim-system-0.12.1 db/seeds.rb
decidim-system-0.13.0.pre1 db/seeds.rb
decidim-system-0.12.0 db/seeds.rb
decidim-system-0.12.0.pre db/seeds.rb