summaryrefslogtreecommitdiffhomepage
path: root/db/seeds.rb
blob: 129cf7c5bab16066eea2d00c52a43c1a6b5a58f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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

9.times do |i|
  Blog.create!(
    name: "Blog Post #{i + 1}",
    content: "This is just some placeholder blog content :3",
    category: "Test Blog",
  )
end