Class: Munificent::Admin::Seeds

Inherits:
Object
  • Object
show all
Defined in:
lib/munificent/admin/seeds.rb

Class Method Summary collapse

Class Method Details

.runObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/munificent/admin/seeds.rb', line 4

def self.run
  puts "Creating admin user [email protected]" # rubocop:disable Rails/Output
  Munificent::Admin::User.create!(
    name: "Test User",
    email_address: "[email protected]",
    password: "password123",
    password_confirmation: "password123",
    full_access: true,
    # otpauth://totp/Jingle%20Jam%20%28Staging%29:admin%40example.com?secret=EEKMC5VPZQDAD2XT27DRKIWXAJTHDKVC&issuer=Jingle%20Jam%20%28Staging%29
    otp_secret: "EEKMC5VPZQDAD2XT27DRKIWXAJTHDKVC",
    last_otp_at: Time.zone.now,
  )
end