Skip to content

Commit f4ed7f7

Browse files
committed
Add faker and admin seed
1 parent 5076bf8 commit f4ed7f7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ gem 'sass-rails', '~> 5.0'
1818
gem 'uglifier', '>= 1.3.0'
1919
# See https://github.com/rails/execjs#readme for more supported runtimes
2020
# gem 'therubyracer', platforms: :ruby
21+
gem 'faker', "1.7.2"
2122

2223
# Use jquery as the JavaScript library
2324
gem 'jquery-rails'

db/seeds.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
User.create(user_info)
1717
end
1818

19+
1.times do
20+
user_info = {
21+
name: Ken,
22+
email: ken@gmail.com,
23+
password: "password",
24+
is_ken: true
25+
}
26+
User.create(user_info)
27+
end
28+
1929
# Recipes
2030
75.times do
2131
recipe_info = {

0 commit comments

Comments
 (0)