Sha256: 105a0d968da716e64555a97d8624b0dfe624400e8c8619fb432f6efd596eb36c
Contents?: true
Size: 712 Bytes
Versions: 8
Compression:
Stored size: 712 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@example.org", password: "decidim123456", password_confirmation: "decidim123456", confirmed_at: Time.current, locale: I18n.default_locale, organization: staging_organization, tos_agreement: true, comments_notifications: true, replies_notifications: true ) Decidim::Admin::ParticipatoryProcessUserRole.create!( user: process_admin, participatory_process: Decidim::ParticipatoryProcess.order(id: :asc).first, role: "admin" ) end
Version data entries
8 entries across 8 versions & 2 rubygems