Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. legdata = ConfigWageDescription.new
  2. regsal  = ConfigWageDescription.new
  3.  
  4. [legdata, regsal].each do |x|
  5.   x.inactive_ind = 0
  6.   [:created_user_login, :updated_user_login].each do |y|
  7.     x.y = "batch_ops"
  8.   end
  9. end
  10. legdata.wage_file_entry_description = "Legacy Data"
  11. regsal.wage_file_entry_description  = "Regular Salary"
  12.  
  13. legdata.created_user_login          = "batch_ops"
  14. legdata.updated_user_login          = "batch_ops"
  15. legdata.wage_file_entry_description = "Legacy Data"
  16. legdata.inactive_ind                = 0      
  17. regsal.created_user_login           = "batch_ops"
  18. regsal.updated_user_login           = "batch_ops"
  19. regsal.wage_file_entry_description  = "Regular Salary"
  20. regsal.inactive_ind                 = 0
  21.  
  22. raise unless legdata.save    
  23. raise unless regsal.save
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top