Move initial setup from seeds.rb to bootstrap rake task

#515
This commit is contained in:
Artur Beljajev 2017-05-14 19:29:58 +03:00
parent 924e6c037a
commit ca6105a919
3 changed files with 12 additions and 34 deletions

11
lib/tasks/bootstrap.rake Normal file
View file

@ -0,0 +1,11 @@
desc 'Bootstraps production-like environment'
task :bootstrap do
AdminUser.create!(
username: 'demo',
email: 'demo@domain.tld',
password: 'demodemo',
password_confirmation: 'demodemo',
country_code: 'US',
roles: ['admin']
)
end