lib/build-tool/history.rb in build-tool-0.3.2 vs lib/build-tool/history.rb in build-tool-0.3.3
- old
+ new
@@ -79,9 +79,14 @@
if !self.finished_at.nil?
raise StandardError, "Wrong state for finished Command" if ! [ FINISHED_SUCCESSFUL, FINISHED_WITH_ERRORS, CANCELED_BY_USER ].include? self.state
end
end
+ def before_destroy
+ self.module_logs_dataset.delete
+ super
+ end
+
# Class Methods
class << self
# Loads the most recents entry from the database
def most_recent( offset = nil )