Sha256: 03b53cb2506ea68285865e2156aff0c0092f0d89f783fbed989d31eafcbc88e8
Contents?: true
Size: 930 Bytes
Versions: 27
Compression:
Stored size: 930 Bytes
Contents
require 'mumuki/domain/seed' Mumuki::Domain::Seed.import_languages! Mumuki::Domain::Seed.import_main_contents! Organization.find_or_create_by!(name: 'base') do |org| org.contact_email = 'issues@mumuki.org' org.book = Book.find_by!(slug: 'mumuki/mumuki-libro-programacion') org.public = true org.login_methods = Mumukit::Login::Settings.login_methods org.locale = 'es' end Organization.find_or_create_by!(name: 'private') do |org| org.book = Book.find_by!(slug: 'mumukiproject/mumuki-libro-aprende-a-programar-recorrido-extendido') org.public = false end Organization.find_or_create_by!(name: 'central') User.find_or_create_by!(uid: 'dev.student@mumuki.org') { |org| org.permissions = {student: 'central/*'} } User.find_or_create_by!(uid: 'dev.teacher@mumuki.org') { |org| org.permissions = {teacher: 'private/*'} } User.find_or_create_by!(uid: 'dev.owner@mumuki.org') { |org| org.permissions = {owner: '*/*'} }
Version data entries
27 entries across 27 versions & 1 rubygems