Try fixing db:seed:backer
This commit is contained in:
parent
3fc5651e9d
commit
83f8cbbb5c
1 changed files with 3 additions and 3 deletions
|
|
@ -22,10 +22,10 @@ def create
|
|||
:username => username,
|
||||
:password => "#{username+backer_info[backer_number]['pin'].to_s}",
|
||||
:password_confirmation => "#{username+backer_info[backer_number]['pin'].to_s}",
|
||||
:person => Person.new(
|
||||
:profile => Profile.new( :first_name => backer_info[backer_number]['given_name'], :last_name => backer_info[backer_number]['family_name'],
|
||||
:person => {
|
||||
:profile => { :first_name => backer_info[backer_number]['given_name'], :last_name => backer_info[backer_number]['family_name'],
|
||||
:image_url => "http://#{username}.joindiaspora.com/images/user/#{username}.jpg")
|
||||
))
|
||||
}}
|
||||
user.save
|
||||
user.person.save!
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue