backend/db/seeds.rb
# # 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)
# require 'faker'
# 10.times do
# user = User.create(
# email: Faker::Internet.email,
# password: Faker::Internet.password,
# name: Faker::Name.name
# )
# company = Company.create(
# name: Faker::Company.name
# )
# contract = Contract.create(
# script: [Faker::Cannabis.cannabinoid, Faker::Cannabis.cannabinoid],
# order: Faker::Cannabis.buzzword,
# user_id: User.all.sample.id,
# company_id: Company.all.sample.id
# )
# puts "Seeding 10 of each..."
# puts "User: #{user.name} - Company: #{company.name} - Contract: #{contract.script}"
# end