Sha256: 3afea0b7b43217dd3c22c74f8d153aafb10486169120e6bcb5488c037d3c4da0
Contents?: true
Size: 901 Bytes
Versions: 12
Compression:
Stored size: 901 Bytes
Contents
# Copyright 2023 Google LLC # # Use of this source code is governed by an MIT-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT. require_relative "../../config/environment.rb" require_relative "../models/singer" require_relative "../models/album" first_names = ["Pete", "Alice", "John", "Ethel", "Trudy", "Naomi", "Wendy", "Ruben", "Thomas", "Elly"] last_names = ["Wendelson", "Allison", "Peterson", "Johnson", "Henderson", "Ericsson", "Aronson", "Tennet", "Courtou"] adjectives = ["daily", "happy", "blue", "generous", "cooked", "bad", "open"] nouns = ["windows", "potatoes", "bank", "street", "tree", "glass", "bottle"] 5.times do Singer.create first_name: first_names.sample, last_name: last_names.sample end 20.times do singer_id = Singer.all.sample.id Album.create title: "#{adjectives.sample} #{nouns.sample}", singer_id: singer_id end
Version data entries
12 entries across 7 versions & 1 rubygems