# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

User.create [{username: 'admin', password: 'password', password_confirmation: 'password', admin: true},
             {username: 'user', password: 'password', password_confirmation: 'password'}], without_protection: true
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

User.where(username: ['admin','user']).destroy_all

User.create! [{username: 'admin', password: 'password', password_confirmation: 'password', admin: true},
             {username: 'user', password: 'password', password_confirmation: 'password'}], without_protection: true
Clear seed users before trying to add them with `rake db:seed`
Clear seed users before trying to add them with `rake db:seed`
