parent
102f967b51
commit
729c079738
@ -0,0 +1,11 @@
|
|||||||
|
namespace :myshixun do
|
||||||
|
desc "delete gpid is no"
|
||||||
|
task :delete_error_myshixuns => :environment do
|
||||||
|
begin
|
||||||
|
myshixuns = Myshixun.where(gpid: nil)
|
||||||
|
myshixuns.delete_all
|
||||||
|
rescue Exception => e
|
||||||
|
puts e
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue