Skip to content

Commit

Permalink
createdb: add initial user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tripleee committed Mar 16, 2018
1 parent e167bc9 commit 0dd516e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions createdb
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ cp config/config.sample.yml config/config.yml
rails db:create
rails db:schema:load
rails db:seed

rails c <<\____
User.create!(
username: 'metasmoke', email: 'metasmoke@localhost', password: 'password')
User.first.add_role(:admin)
User.first.add_role(:developer)
____

0 comments on commit 0dd516e

Please sign in to comment.