|
@ -2,12 +2,7 @@ require "bcrypt" |
|
|
salt = BCrypt::Engine.generate_salt |
|
|
salt = BCrypt::Engine.generate_salt |
|
|
encrypted_password = BCrypt::Engine.hash_secret('password', salt) |
|
|
encrypted_password = BCrypt::Engine.hash_secret('password', salt) |
|
|
|
|
|
|
|
|
User.create!(:email => "bike@bikelover.org", :encrypted_password => encrypted_pa |
|
|
User.new(:email => "bike@bikelover.org", :encrypted_password => encrypted_password).save(validate: false); |
|
|
ssword).save(validate: false); |
|
|
|
|
|
|
|
|
|
|
|
Bike.create!(log_number: 1, brand: "Schwinn", model: "Paramount", bike_type: "Ro |
|
|
Bike.create!(log_number: 1, brand: "Schwinn", model: "Paramount", bike_type: "Road", color: "Radiant Coppertone", purpose: "Sale", price: 300, serial_number: "22bikebike22") |
|
|
ad", color: "Radiant Coppertone", purpose: "Sale", price: 300, serial_number: "2 |
|
|
Bike.create!(log_number: 2, brand: "Schwinn", model: "Paramount", bike_type: "Road", color: "Flamboyant Lime", purpose: "Freecyclery", serial_number: "33bikebike33") |
|
|
2bikebike22") |
|
|
|
|
|
Bike.create!(log_number: 2, brand: "Schwinn", model: "Paramount", bike_type: " |
|
|
|
|
|
Road", color: "Flamboyant Lime", purpose: "Freecyclery", serial_number: "33bikeb |
|
|
|
|
|
ike33") |
|
|
|
|
|