Skip to content

Commit 4008961

Browse files
committed
Add require Faker for seed and update Heroku post release scripts
1 parent d4a2e83 commit 4008961

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This is my RoR full stack web development learning project & example, including
2626
- [Devise](https://github.com/plataformatec/devise), flexible authentication solution.
2727
- [Ruby Recaptcha](https://github.com/ambethia/recaptcha), recaptcha lib.
2828
- [Paper Trail](https://github.com/paper-trail-gem/paper_trail), Track changes to your rails models.
29+
- [Will Paginate](https://github.com/mislav/will_paginate), auto pagination from ActiveRecord.
2930
- [RSpec Rails 3](https://relishapp.com/rspec/rspec-rails/v/3-9/docs), BDD and test suite.
3031
- [Faker](https://github.com/faker-ruby/faker), A library for generating fake data such as names, addresses, and phone numbers.
3132
- [Factory Bot Rails](https://github.com/thoughtbot/factory_bot_rails), a library for setting up Ruby objects as test data.

db/seeds.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'faker'
2+
13
user = User.create!(email: '[email protected]', password: 'admin', password_confirmation: 'admin', display_name: 'Administrator')
24
categories = Category.create [{name: 'Ruby'},{name: 'Java'},{name: 'Kotlin'},
35
{name: 'Agile'},{name: 'Javascript'},{name: 'DevOps'},

post-release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ echo '======================'
33
echo ' Heroku Post Script '
44
echo '======================'
55
sleep 30
6+
bundle install
67
bin/rails db:migrate
78
bin/rails db:reseed
89
echo '~---=={{ DONE! }}==---~'

0 commit comments

Comments
 (0)