lib/exodus/migrations/migration.rb in exodus-1.1.0 vs lib/exodus/migrations/migration.rb in exodus-1.1.1
- old
+ new
@@ -126,9 +126,17 @@
def characteristic
"#{self.class}: #{self.status.arguments}"
end
+ def eql?(other_migration)
+ self.class == other_migration.class && self.status.arguments == other_migration.status.arguments
+ end
+
+ def hash
+ self.class.hash ^ self.status.arguments.hash
+ end
+
protected
# Executes a given block if the status has not being processed
# Then update the status
def step(step_message = nil, step_status = 1)
\ No newline at end of file