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
|
||||
user = User.create( :email => "#{username}@#{username}.joindiaspora.com",
|
||||
:password => "#{username+backer_info[backer_number]['pin'].to_s}",
|
||||
:person => Person.new(
|
||||
:email => "#{username}@#{username}.joindiaspora.com",
|
||||
:profile => Profile.new( :first_name => backer_info[backer_number]['given_name'], :last_name => backer_info[backer_number]['family_name'] ),
|
||||
:url=> "http://#{username}.joindiaspora.com/")
|
||||
|
||||
# Make connection with Diaspora Tom
|
||||
#Person.create( :email => "tom@joindiaspora.com", :url => "http://tom.joindiaspora.com/", :active => true, :profile => Profile.new(:first_name => "Alexander", :last_name => "Hamiltom"))
|
||||
# Make people
|
||||
|
||||
# (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)
|
||||
#}
|
||||
)
|
||||
user.person.save
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -9,5 +9,12 @@
|
|||
require 'config/environment'
|
||||
|
||||
# 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