Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (34 sloc) 2.131 kb
# coding: utf-8
# 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 => 'Daley', :city => cities.first)
s1 = Section.create(:name => "Ruby")
Node.create(:name => "Ruby",:summary => "...", :section_id => s1.id)
Node.create(:name => "Ruby on Rails",:summary => "...", :section_id => s1.id)
Node.create(:name => "Gem",:summary => "...", :section_id => s1.id)
s2 = Section.create(:name => "Web Development")
Node.create(:name => "Python",:summary => "...", :section_id => s2.id)
Node.create(:name => "Javascript",:summary => "...", :section_id => s2.id)
Node.create(:name => "CoffeeScript",:summary => "...", :section_id => s2.id)
Node.create(:name => "HAML",:summary => "...", :section_id => s2.id)
Node.create(:name => "SASS",:summary => "...", :section_id => s2.id)
Node.create(:name => "MongoDB",:summary => "...", :section_id => s2.id)
Node.create(:name => "Redis",:summary => "...", :section_id => s2.id)
Node.create(:name => "Git",:summary => "...", :section_id => s2.id)
Node.create(:name => "MySQL",:summary => "...", :section_id => s2.id)
Node.create(:name => "Hadoop",:summary => "...", :section_id => s2.id)
Node.create(:name => "Google",:summary => "...", :section_id => s2.id)
Node.create(:name => "Java",:summary => "...", :section_id => s2.id)
Node.create(:name => "Tornado",:summary => "...", :section_id => s2.id)
Node.create(:name => "Linux",:summary => "...", :section_id => s2.id)
Node.create(:name => "Nginx",:summary => "...", :section_id => s2.id)
Node.create(:name => "Apache",:summary => "...", :section_id => s2.id)
Node.create(:name => "Cloud",:summary => "...", :section_id => s2.id)
s6 = Section.create(:name => "Ruby China")
Node.create(:name => "公告",:summary => "...", :section_id => s6.id)
Node.create(:name => "反馈",:summary => "...", :section_id => s6.id)
Node.create(:name => "开发",:summary => "...", :section_id => s6.id)
Jump to Line
Something went wrong with that request. Please try again.