Sha256: 802a20f84877e993f90c562966a3743dd5341dda9e41481ca3ab9535b5f72490

Contents?: true

Size: 858 Bytes

Versions: 7

Compression:

Stored size: 858 Bytes

Contents

# 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 rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

movies    = Category.create :title => "Movies",           :slug => "movies"
star_wars = Category.create :title => "Star Wars",        :slug => "star-wars", :category => movies
time      = Category.create :title => "What time Is It?", :slug => "time"

Post.create :title => "A Long Long Time Ago", :slug => "a-long-long-time-ago",  :category => star_wars
Post.create :title => "It's Hammer Time",     :slug => "its-hammer-time",       :category => time
Post.create :title => "Test",                 :slug => "test"

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
vinted-crummy-1.11.0 example/db/seeds.rb
crummy-schema-dot-org-1.9.0 example/db/seeds.rb
vinted-crummy-1.10.0 example/db/seeds.rb
vinted-crummy-1.9.0 example/db/seeds.rb
crummy-1.8.0 example/db/seeds.rb
crummy-1.7.2 example/db/seeds.rb
crummy-1.7.1 example/db/seeds.rb