seeds.rb 401 B

123456789
  1. # frozen_string_literal: true
  2. # This file should contain all the record creation needed to seed the database with its default values.
  3. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
  4. #
  5. # Examples:
  6. #
  7. # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
  8. # Character.create(name: 'Luke', movie: movies.first)