summaryrefslogtreecommitdiff
path: root/db/seeds.rb
blob: 848db0d72f6e8516a73561321b02a89a1ca76005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# This file should ensure the existence of records required to run the application in every environment (production,
# development, test). The code here should be idempotent so that it can be executed at any point in every environment.
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
#
# Example:
#
#   ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|
#     MovieGenre.find_or_create_by!(name: genre_name)
#   end

Dir[Rails.root.join("db/seeds/*.rb")].sort.each do |seed|
  load seed
end
Copyright 2019--2025 Marius PETER