Commit 31351f199d22ef3f567d0d3e38f5c9822f4d53bd

Authored by Heitor
1 parent e7a51fb6

Changed seeds file to print generated password when run

Signed off by: Daniel Miranda <danielkza2@gmail.com>
Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
db/seeds.rb
... ... @@ -7,8 +7,12 @@
7 7 # Mayor.create(name: 'Emanuel', city: cities.first)
8 8  
9 9 # Default mezuro user, the owner of the public kalibro configurations
10   -default_user = FactoryGirl.create(:mezuro_user, id: nil)
11   -default_user.save
  10 +password = Devise.friendly_token
  11 +default_user = FactoryGirl.create(:mezuro_user, password: password)
  12 +
  13 +puts "-- Default user created:"
  14 +puts " Email: #{default_user.email}"
  15 +puts " Password: #{password}"
12 16  
13 17 # The database should have only the default public
14 18 # configurations when this file is executed
... ...