lib/tasks/jinda.rake in jinda-0.2.0 vs lib/tasks/jinda.rake in jinda-0.2.1
- old
+ new
@@ -17,10 +17,10 @@
desc "generate admin user"
task :seed=> :environment do
unless Identity.where(code:"admin").exists?
identity= Identity.create :code => "admin", :email => "admin@test.com", :password => "secret",
:password_confirmation => "secret", :image => "https://user-images.githubusercontent.com/3953832/42472827-50ed8cbc-8388-11e8-8982-fa523c25288f.png"
- User.create :provider => "identity", :uid => identity.id.to_s, :code => identity.code,
+ Jinda::User.create :provider => "identity", :uid => identity.id.to_s, :code => identity.code,
:email => identity.email, :role => "M,A,D", :auth_token => "71JxMH5fxi23zinBoq1uKA", :image => identity.image
end
end
desc "cancel all pending tasks"