Skip to content

Commit

Permalink
Fixing seed data by adding passwords (using README values) to the Use…
Browse files Browse the repository at this point in the history
…r hash in seed.rb. DamageStudios#86.
  • Loading branch information
blakerego committed May 28, 2016
1 parent 53294d2 commit dca50d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
User.create!([
{email: "[email protected]", encrypted_password: "$2a$10$oDzbUkPp42HJd8rnmXG2qOMQAgLSuneh0m1/k6SDZVftfYHHvlOYm", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 4, current_sign_in_at: "2014-12-30 23:41:54", last_sign_in_at: "2014-12-30 23:40:40", current_sign_in_ip: "::1", last_sign_in_ip: "::1", role: 2},
{email: "[email protected]", encrypted_password: "$2a$10$sA0D0R3hEgdHUWPNiqYY.eh8xJsVjHpG9EHCSrMLllkWIciRuTALW", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, current_sign_in_at: "2014-03-10 11:28:22", last_sign_in_at: "2014-03-10 11:28:22", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", role: 0}
{email: "[email protected]", password: "changeme",encrypted_password: "$2a$10$oDzbUkPp42HJd8rnmXG2qOMQAgLSuneh0m1/k6SDZVftfYHHvlOYm", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 4, current_sign_in_at: "2014-12-30 23:41:54", last_sign_in_at: "2014-12-30 23:40:40", current_sign_in_ip: "::1", last_sign_in_ip: "::1", role: 2},
{email: "[email protected]", password: "changeme", encrypted_password: "$2a$10$sA0D0R3hEgdHUWPNiqYY.eh8xJsVjHpG9EHCSrMLllkWIciRuTALW", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, current_sign_in_at: "2014-03-10 11:28:22", last_sign_in_at: "2014-03-10 11:28:22", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", role: 0}
])
Item.create!([
{name: "Arduino Uno", description: "The Arduino Uno is a microcontroller board based on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button. \r\n\r\nRevision 3 of the board has the following new features:\r\n* 1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins placed near to the RESET pin, the IOREF that allow the shields to adapt to the voltage provided from the board. In future, shields will be compatible with both the board that uses the AVR, which operates with 5V and with the Arduino Due that operates with 3.3V. The second one is a not connected pin, that is reserved for future purposes.\r\n* Stronger RESET circuit.\r\n* Atmega 16U2 replace the 8U2.", product_model_number: "R3", vendor_part_number: "50", vendor_name: "Adafruit", quantity: 8, unit_value: "24.949999999999999289457264239899814129", value: "199.599999999999994315658113919198513031", picture: "50-01.jpg", vendor_url: "http://www.adafruit.com/products/50", category: "Arduino", location: "H1LD1B1"},
Expand Down

0 comments on commit dca50d0

Please sign in to comment.