Sha256: e330e99838fd4259ddddc64bc31651f45cbc015e216501267a930a1d2fc46c42

Contents?: true

Size: 671 Bytes

Versions: 62

Compression:

Stored size: 671 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 bin/rails db:seed command (or created alongside the database with db:setup).
#
# User.find_or_create_by(email: "admin@admin.com") do |user|
#   user.name = 'Admin'
#   user.password = 'password'
#   user.admin = true
# end

flavours = %w[Blueberry Strawberry Banana Raspberry Apple Grape]
50.times do
  Yogurt.create(flavour: flavours.sample)
end
50.times do
  person = Person.create(name: Faker::Name.name)
  person.update!(updated_at: Faker::Time.between_dates(from: 20.days.ago, to: Date.today, period: :day) + 10.hours)
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
rails_app_generator-0.2.30 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.29 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.28 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.27 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.26 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.25 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.24 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.23 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.22 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.21 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.20 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.19 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.18 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.17 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.16 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.15 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.14 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.13 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.12 after_templates/addons/chartkick/db/seeds.rb
rails_app_generator-0.2.11 after_templates/addons/chartkick/db/seeds.rb