Skip to content

Commit

Permalink
feat: Create superadmin in seeds (chatwoot#1442)
Browse files Browse the repository at this point in the history
Create SuperAdmin in seeds scripts except on production
  • Loading branch information
azyzio authored Nov 24, 2020
1 parent 942d1fd commit dffc888
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
user.skip_confirmation!
user.save!

SuperAdmin.create!(email: '[email protected]', password: '123456') unless Rails.env.production?

AccountUser.create!(
account_id: account.id,
user_id: user.id,
Expand Down

0 comments on commit dffc888

Please sign in to comment.