Sha256: 7f7bc10c9fbc15a590d3527ec75e7331a44660ea63090a7690111544dd170b3f
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
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 rails db:seed command (or created alongside the database with db:setup). # # Examples: # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Character.create(name: 'Luke', movie: movies.first) Hyrax::Engine.load_seed puts "\n== Loading users" User.where(email: 'admin@example.com').first_or_create do |f| f.password = 'admin_password' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-3.0.0.pre.rc4 | .dassie/db/seeds.rb |
hyrax-3.0.0.pre.rc3 | .dassie/db/seeds.rb |