mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add a rake task to create demo data
Useful for development, review apps and our demo instance
This commit is contained in:
parent
77e0340387
commit
5e656e7d9f
1 changed files with 8 additions and 0 deletions
8
lib/tasks/data_demo.rake
Normal file
8
lib/tasks/data_demo.rake
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace :data do
|
||||
desc 'Create demo data using our factories'
|
||||
task demo: :environment do
|
||||
include FactoryGirl::Syntax::Methods
|
||||
create(:full_conference)
|
||||
create(:admin, email: 'admin@osem.io', username: 'admin', password: 'password', password_confirmation: 'password')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue