Sha256: 92ec2b2736a0e2a657bc77ef4b39c0c7acd5d4e46152ef01e6b5b952619dc54e

Contents?: true

Size: 676 Bytes

Versions: 1

Compression:

Stored size: 676 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)
#
author = HyperKittenMeow::User.create!(
  name: 'Admin',
  email: 'admin@admin.admin',
  password: 'adminadmin', 
  password_confirmation: 'adminadmin'
)

post_content = <<-POST
Hello
This is a post.
POST

HyperKittenMeow::Post.create!(title: 'Test Title', user: author, body: post_content, summary: post_content, published: true)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper-kitten-meow-0.1.2 spec/dummy/db/seeds.rb