# 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 => citie require 'config/environment' # Create seed user user = User.create( :email => "tom@joindiaspora.com", :password => "aaaaaa", :profile => Profile.create( :first_name => "Diaspora", :last_name => "Tom" )) names = [ ["George", "Washington"], ["John", "Adams"], ["Thomas", "Jefferson"], ["James", "Madison"], ["James", "Monroe"], ["John Quincy", "Adams"], ["Andrew", "Jackson"], ["Martin Van", "Buren"], ["William Henry","Harrison"], ["John", "Tyler"], ["James K." , "Polk"], ["Zachary", "Taylor"], ["Millard", "Fillmore"], ["Franklin", "Pierce"], ["James", "Buchanan"], ["Abraham", "Lincoln"] ] # Make friends (0..9).each { |n| Friend.create( :email => "#{names[n][1]}@joindiaspora.com", :url => "http://#{names[n][1]}.joindiaspora.com/", :profile => Profile.create(:first_name => names[n][0], :last_name => names[n][1])) }