Skip to content

Instantly share code, notes, and snippets.

@manojmj92
Created November 28, 2018 16:02
Show Gist options
  • Save manojmj92/6d40d35d9fd6d8b6fa6a0d5ac1303567 to your computer and use it in GitHub Desktop.
Save manojmj92/6d40d35d9fd6d8b6fa6a0d5ac1303567 to your computer and use it in GitHub Desktop.
employee_update
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