Created
November 28, 2018 16:02
-
-
Save manojmj92/6d40d35d9fd6d8b6fa6a0d5ac1303567 to your computer and use it in GitHub Desktop.
employee_update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc 'destroys employee update' | |
task :employee_update_remove => :environment do | |
puts "Starting Migration" | |
records = EmployeeUpdate.last(3) | |
records.each do |record| | |
puts "Going to destroy record #{record.id}" | |
record.destroy | |
end | |
puts "Migration Ended" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment