Sha256: a50649903127a00dfd7fb317990665394e4f4c3c481bb88ce2a26b59151e21c1
Contents?: true
Size: 645 Bytes
Versions: 6
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true if !Rails.env.production? || ENV["SEED"] staging_organization = Decidim::Organization.order(id: :asc).first process_admin = Decidim::User.create!( name: "Process Admin", email: "process_admin@decidim.org", password: "decidim123456", password_confirmation: "decidim123456", confirmed_at: Time.current, locale: I18n.default_locale, organization: staging_organization, tos_agreement: true ) Decidim::Admin::ParticipatoryProcessUserRole.create!( user: process_admin, participatory_process: Decidim::ParticipatoryProcess.order(id: :asc).first, role: "admin" ) end
Version data entries
6 entries across 6 versions & 2 rubygems