fixing the seed script for the refactor
This commit is contained in:
parent
fb4254535d
commit
6acdde7313
2 changed files with 14 additions and 13 deletions
|
|
@ -17,17 +17,11 @@ def create(backer_number)
|
||||||
username = backer_info[backer_number]['username'].gsub(/ /,'').downcase
|
username = backer_info[backer_number]['username'].gsub(/ /,'').downcase
|
||||||
user = User.create( :email => "#{username}@#{username}.joindiaspora.com",
|
user = User.create( :email => "#{username}@#{username}.joindiaspora.com",
|
||||||
:password => "#{username+backer_info[backer_number]['pin'].to_s}",
|
:password => "#{username+backer_info[backer_number]['pin'].to_s}",
|
||||||
:profile => Profile.new( :first_name => backer_info[backer_number]['given_name'], :last_name => backer_info[backer_number]['family_name'] ),
|
:person => Person.new(
|
||||||
:url=> "http://#{username}.joindiaspora.com/")
|
:email => "#{username}@#{username}.joindiaspora.com",
|
||||||
|
:profile => Profile.new( :first_name => backer_info[backer_number]['given_name'], :last_name => backer_info[backer_number]['family_name'] ),
|
||||||
# Make connection with Diaspora Tom
|
:url=> "http://#{username}.joindiaspora.com/")
|
||||||
#Person.create( :email => "tom@joindiaspora.com", :url => "http://tom.joindiaspora.com/", :active => true, :profile => Profile.new(:first_name => "Alexander", :last_name => "Hamiltom"))
|
)
|
||||||
# Make people
|
user.person.save
|
||||||
|
|
||||||
# (0..10).each { |n|
|
|
||||||
#domain_name = backer_info[n][2].gsub(/ /,'').downcase
|
|
||||||
#url = "http://#{domain_name}.joindiaspora.com/"
|
|
||||||
#User.owner.send_friend_request_to(url)
|
|
||||||
#}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,12 @@
|
||||||
require 'config/environment'
|
require 'config/environment'
|
||||||
|
|
||||||
# Create seed user
|
# Create seed user
|
||||||
user = User.create( :email => "tom@tom.joindiaspora.com", :password => "evankorth", :url => "http://tom.joindiaspora.com/", :profile => Profile.new( :first_name => "Alexander", :last_name => "Hamiltom" ))
|
user = User.create( :email => "tom@tom.joindiaspora.com",
|
||||||
|
:password => "evankorth",
|
||||||
|
:person => Person.new(
|
||||||
|
:email => "tom@tom.joindiaspora.com",
|
||||||
|
:url => "http://tom.joindiaspora.com/",
|
||||||
|
:profile => Profile.new( :first_name => "Alexander", :last_name => "Hamiltom" ))
|
||||||
|
)
|
||||||
|
user.person.save
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue