Sha256: d51ad9ebdc7d7e5911eacd678d356d48a0154e8ab7b5107f9f837269a8ee0371
Contents?: true
Size: 1.61 KB
Versions: 6
Compression:
Stored size: 1.61 KB
Contents
# This file should contain all the record creation needed to seed # the database with its default values. # The data can then be loaded with the rake db:seed # (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) # user = CreateAdminService.new.call # puts 'CREATED ADMIN USER: ' << user.email %i[keppler_admin admin client].each do |name| Role.create name: name puts "Role #{name} has been created" end User.create( name: 'Keppler Admin', email: 'admin@keppleradmin.com', password: '+12345678+', password_confirmation: '+12345678+', role_ids: '1' ) puts 'admin@keppler.io has been created' Customize.create(file: '', installed: true) puts 'Keppler Template has been created' # Create setting deafult setting = Setting.create( name: 'Keppler Admin', description: 'Welcome to Keppler Admin', smtp_setting_attributes: { address: 'test', port: '25', domain_name: 'keppler.com', email: 'info@keppler.com', password: '12345678' }, google_analytics_setting_attributes: { ga_account_id: '60688852', ga_tracking_id: 'UA-60688852-1', ga_status: true } ) setting.social_account = SocialAccount.new setting.appearance = Appearance.new(theme_name: 'keppler') setting.save puts 'Setting default has been created' if defined?(KepplerContactUs) && KepplerContactUs.is_a?(Class) KepplerContactUs::MessageSetting.create( mailer_from: 'contacto@slicegroup.xyz', mailer_to: 'contacto@slicegroup.xyz' ) puts 'KepplerContactUs mailer_to and mailer_from has been created' end
Version data entries
6 entries across 6 versions & 1 rubygems