Fixed migration

Added UNIQUE constraint to serial_number