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